2014年5月6日
摘要: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". 整体不是很难。里面java自带的spilt函数就可以将字符串分开。不过在过程中还是未考虑到一些特殊的情况。 比如... 阅读全文
posted @ 2014-05-06 12:01 JessiaDing 阅读(120) 评论(0) 推荐(0)
  2014年4月29日
摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For ... 阅读全文
posted @ 2014-04-29 21:41 JessiaDing 阅读(100) 评论(0) 推荐(0)
  2014年4月24日
摘要: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ... 阅读全文
posted @ 2014-04-24 15:30 JessiaDing 阅读(244) 评论(0) 推荐(0)