摘要:
1 private static final int maxDiv10 = Integer.MAX_VALUE / 10; 2 3 public int atoi(String str) { 4 int i = 0; 5 int n = str.length(); 6 // 首先忽略字符串前面的空格 7 while(i maxDiv10 || n... 阅读全文
摘要:
题目: Given an input string s, reverse the string word by word.For example, given s = "the sky is blue", return "blue is sky the" Example Questions Cand 阅读全文
摘要:
题目: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: 阅读全文
摘要:
题目: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the tw 阅读全文