Leetcode
一月 30, 2018
Record leetcode practices
Since My major is not computer science & softward engineering, I am not good at data structure and algorithm. In order to overcome it, I choose to do more relative practices in leetcode. Practice makes perfect.
I do practices by tags and from easy to difficult and I use javascript
Two sum
Description:
- Given an array of integers, return indices of the two numbers such that they add up to a specific target.
- You may assume that each input would have exactly one solution, and you may not use the same element twice.
1 | /** |
Reverse Integer
Description:
- Given a 32-bit signed integer, reverse digits of an integer.
1 | /** |