March 12, 2016
Great workout! Julia made a few mistakes, and then, fixed the issues:
https://gist.github.com/jianminchen/e7038fa7e59c96378675
Julia, your code is not short enough. Study other people's submission:
1. using Dictionary
2. declare array size of 26, not 256
3. other things - check string input etc.
4. using string manipulation, from an empty string, remove char if finding it, otherwise, append the char.
C#:
1. https://gist.github.com/jianminchen/6bf133d5c42e18260410
2. https://gist.github.com/jianminchen/bd3834da7b28ae619ee2
3. https://gist.github.com/jianminchen/16e9837b7b6b1e1a721c
Read a few of solutions using Java, C++. Great experience, relax and have some fun.
From January 2015, she started to practice leetcode questions; she trains herself to stay focus, develops "muscle" memory when she practices those questions one by one. 2015年初, Julia开始参与做Leetcode, 开通自己第一个博客. 刷Leet code的题目, 她看了很多的代码, 每个人那学一点, 也开通Github, 发表自己的代码, 尝试写自己的一些体会. She learns from her favorite sports – tennis, 10,000 serves practice builds up good memory for a great serve. Just keep going. Hard work beats talent when talent fails to work hard.
Saturday, March 12, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment