摘要:
Given a string, remove all leading/trailing/duplicated empty spaces. Assumptions: The given string is not null. Examples: “ a” --> “a” “ I love MTV ” 阅读全文
posted @ 2020-04-26 10:04
xuan_abc
阅读(139)
评论(0)
推荐(0)
摘要:
Reverse the words in a sentence. Assumptions Words are separated by single space There are no heading or tailing white spaces Examples “I love Google” 阅读全文
posted @ 2020-04-26 09:52
xuan_abc
阅读(159)
评论(0)
推荐(0)
摘要:
Given a linked list, check whether it is a palindrome. Examples: Input: 1 -> 2 -> 3 -> 2 -> 1 -> null output: true. Input: 1 -> 2 -> 3 -> null output: 阅读全文
posted @ 2020-04-26 02:57
xuan_abc
阅读(84)
评论(0)
推荐(0)
摘要:
Given a linked list and a target value T, partition it such that all nodes less than T are listed before the nodes larger than or equal to target valu 阅读全文
posted @ 2020-04-26 02:43
xuan_abc
阅读(90)
评论(0)
推荐(0)
摘要:
Given a integer dictionary A of unknown size, where the numbers in the dictionary are sorted in ascending order, determine if a given target integer T 阅读全文
posted @ 2020-04-26 02:14
xuan_abc
阅读(116)
评论(0)
推荐(0)

浙公网安备 33010602011771号