leetcode
__boostdd
在校学生,对编程以及算法有浓厚的兴趣。
展开
-
leetcode 6 ZigZag Conversion
我的leetcode刷题之路就从此时开始,令我没想到的是,我专门挑了一个被标记为easy的开始,但是给我的感觉却是并不easy 费了不少的功夫才搞定他,下面就对此题开始详细说明: problem:the string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this :(you原创 2015-10-29 19:06:36 · 362 阅读 · 0 评论 -
leetcode 7 Reverse Integer
Reverse Integer Reverse digits of an integer Example1 : x = 123, return 321 Example2: x = -123, return -321; Here are some good questions to ask before coding. Bonus points for you if you h原创 2015-10-30 17:14:16 · 311 阅读 · 0 评论 -
leetcode 1 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe原创 2015-11-27 12:54:06 · 378 阅读 · 0 评论