摘要: 题目 Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1 1 2 Output: 1 2 Example 2: Input: 1 阅读全文
posted @ 2018-10-01 11:36 shinjia 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 题目 Given two binary strings, return their sum (also a binary string). The input strings are both non empty and contains only characters 1 or 0. Exampl 阅读全文
posted @ 2018-10-01 11:09 shinjia 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a non empty array of digits representing a non negative integer, plus one to the integer. The digits are stored such that the most significan 阅读全文
posted @ 2018-10-01 11:00 shinjia 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目 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 w 阅读全文
posted @ 2018-10-01 09:29 shinjia 阅读(92) 评论(0) 推荐(0) 编辑