- 博客(3)
- 收藏
- 关注
原创 [LeetCode-91] Decode Ways
A message containing letters from A-Z is being encoded to numbers using the following mapping:‘A’ -> 1 ‘B’ -> 2 … ‘Z’ -> 26 Given an encoded message containing digits, determine the total number of
2016-04-10 20:46:05 465
原创 [LeetCode-9] Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.Solution[C++]:class Solution { public: bool isPalindrome(int x) { if(x < 0) return false; int t
2016-04-10 13:52:47 382
原创 [LeetCode-70] Climbing Stairs
[LeetCode-70] Climbing StairsYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? Solutio
2016-04-05 18:05:03 350
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人