practice in leetcode
暂时按照下面这个回答的顺序来着先:
先把这五个tag做了:array,string,tree,linkedlist,math
- Look at the 3 most voted solution, look at that strategy.
- CTRL+F for "1ms" or " fast" and see whether they have improvements.
- As a trick I post my solution too, so if someone see lags in my code or necessary improvements they will comment :P