摘要:
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->... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
Longest WordsGiven a dictionary, find all of the longest words in the dictionary.ExampleGiven{ "dog", "google", "facebook", "internationalization"... 阅读全文
摘要:
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... 阅读全文