LeetCode – 14. Longest Common Prefix

LeetCode – 14. Longest Common Prefix

Write a function to find the longest common prefix string amongst an array of strings. 没啥难度,不多说了 pub…

LeetCode – 9. Palindrome Number

LeetCode – 9. Palindrome Number

Determine whether an integer is a palindrome. Do this without extra space. 这道题其实挺没意思的,不能用extra space…

LeetCode – 205. Isomorphic Strings

LeetCode – 205. Isomorphic Strings

Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the chara…

LeetCode – 73. Set Matrix Zeroes

LeetCode – 73. Set Matrix Zeroes

Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Follow…

LintCode – Space Replacement

LintCode – Space Replacement

题目:http://www.lintcode.com/en/problem/space-replacement/ 思路: 计算空格 创建一个新的string,长度为原先长度+2*空格数 用新strin…

LeetCode – 266. Palindrome Permutation

LeetCode – 266. Palindrome Permutation

Given a string, determine if a permutation of the string could form a palindrome. For example, “code…

LeetCode – 387. First Unique Character in a String

LeetCode – 387. First Unique Character in a String

Given a string, find the first non-repeating character in it and return it’s index. If it does…

返回顶部