Thursday, November 9, 2017

Leetcode 151: reverse words in a string

Nov. 9, 2017

Introduction


It is in-place to make the algorithm a classical algorithm for any language. I have practiced over a few times last 6 month, and on Nov. 8 10 PM I had chance to write the algorithm in 30 minutes, and the code passed all test cases.

Usually first few time I have to figure out the issues I have and then found ways to solve the algorithm. Last night practice is no longer challenge for me anymore, I noticed that and started to look into Leetcode 151 discussion panel after mock interview.

Algorithm study


Here is the C# practice.


No comments:

Post a Comment