string
-
LeetCode – 9. Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. This question is actually quite pointless; you can't use extra space…
-
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
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
Problem: http://www.lintcode.com/en/problem/space-replacement/ Solution: Calculate spaces. Create a new string with the original length + 2 * the number of spaces. Use the new string…
-
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
Given a string, find the first non-repeating character in it and return it’s index. If it does…