2016年5月7日

Remove Duplicates from Sorted List

摘要: Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, 阅读全文

posted @ 2016-05-07 20:14 Sheryl Wang 阅读(92) 评论(0) 推荐(0) 编辑

Length of Last Word

摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文

posted @ 2016-05-07 17:49 Sheryl Wang 阅读(151) 评论(0) 推荐(0) 编辑

导航