2015年11月24日

摘要: Nth to Last Node in ListFind the nth to last element of a singly linked list.The minimum number of nodes in list is n.ExampleGiven a List 3->2->1->5->... 阅读全文
posted @ 2015-11-24 15:05 一心一念 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Add Two NumbersYou have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, suc... 阅读全文
posted @ 2015-11-24 14:14 一心一念 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Length of Last WordGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the strin... 阅读全文
posted @ 2015-11-24 06:58 一心一念 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Longest WordsGiven a dictionary, find all of the longest words in the dictionary.ExampleGiven{ "dog", "google", "facebook", "internationalization"... 阅读全文
posted @ 2015-11-24 05:58 一心一念 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Write a method to replace all spaces in a string with %20. The string is given in a characters array, you can assume it has enough space for replaceme... 阅读全文
posted @ 2015-11-24 02:47 一心一念 阅读(145) 评论(0) 推荐(0) 编辑

导航