摘要:
Valid PalindromeJan 13Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama"is a palindrome."race a car"isnota palindrome.Note:Have you consider that the string might be empty? This 阅读全文
摘要:
String to Integer (atoi)Dec 27 '11Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases.Notes:It is intended for this problem to be specified vaguely (ie 阅读全文
摘要:
Sqrt(x)Apr 3 '12Implementint sqrt(int x).Compute and return the square root ofx.class Solution {
public: int sqrt(int x) { // Start typing your C/C++ solution below // DO NOT write int main() function // Start typing your Java solution below // DO NOT writ... 阅读全文