- 博客(4)
- 收藏
- 关注
原创 LeetCode-ZigZag Conversion
The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H N A P L S I I G
2015-06-29 22:21:14 358
原创 LeetCode-Valid Number
Validate if a given string is numeric.Some examples: “0” => true ” 0.1 ” => true “abc” => false “1 a” => false “2e10” => true Note: It is intended for the problem statement to be ambiguous. You s
2015-06-29 11:15:25 244
原创 LeetCode-Basic Calculator
Implement a basic calculator to evaluate a simple expression string.The expression string may contain open ( and closing parentheses ), the plus + or minus sign -, non-negative integers and empty space
2015-06-28 22:36:52 590
原创 leetCode-Add Binary(c++)
Given two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” Return “100”. 题意:给定两个二进制的字符串,计算其和思路:将两个字符串按照长度分为大字符串和小字符串,末尾对齐,在低位,即小字符串的范围相加,进位保留,然后将保留的进位与大字符串高位,即大
2015-06-27 21:59:52 312
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人