上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页
摘要: Problem : Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Example 2: 思路 : Solution (C++) : 性能 : 阅读全文
posted @ 2020-03-28 11:30 littledy 阅读(74) 评论(0) 推荐(0)
摘要: Problem : 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. 阅读全文
posted @ 2020-03-28 11:10 littledy 阅读(71) 评论(0) 推荐(0)
摘要: Problem : Implement . Compute and return the square root of x, where x is guaranteed to be a non negative integer. Since the return type is an integer 阅读全文
posted @ 2020-03-27 23:08 littledy 阅读(103) 评论(0) 推荐(0)
摘要: Problem : You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways 阅读全文
posted @ 2020-03-27 22:57 littledy 阅读(82) 评论(0) 推荐(0)
摘要: Problem : 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 sig 阅读全文
posted @ 2020-03-27 22:45 littledy 阅读(87) 评论(0) 推荐(0)
摘要: Problem : Given a string s consists of upper/lower case alphabets and empty space characters ' ', return the length of last word (last word means the 阅读全文
posted @ 2020-03-27 22:20 littledy 阅读(116) 评论(0) 推荐(0)
摘要: Problem : Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inse 阅读全文
posted @ 2020-03-27 20:35 littledy 阅读(100) 评论(0) 推荐(0)
摘要: Problem : Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is va 阅读全文
posted @ 2020-03-27 19:32 littledy 阅读(179) 评论(0) 推荐(0)
摘要: Problem : Given a 32 bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note: Assume we are dealing with an environmen 阅读全文
posted @ 2020-03-27 19:01 littledy 阅读(102) 评论(0) 推荐(0)
摘要: Problem : There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time com 阅读全文
posted @ 2020-03-27 18:17 littledy 阅读(121) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页