上一页 1 2 3 4 5 6 7 ··· 29 下一页
摘要: Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra spa 阅读全文
posted @ 2018-09-26 01:34 jasminemzy 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integ 阅读全文
posted @ 2018-09-25 13:55 jasminemzy 阅读(91) 评论(0) 推荐(0) 编辑
摘要: TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http 阅读全文
posted @ 2018-09-25 13:10 jasminemzy 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes 阅读全文
posted @ 2018-09-25 11:06 jasminemzy 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:* The number of elements initialized in nums1 and num 阅读全文
posted @ 2018-09-25 09:39 jasminemzy 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings, group anagrams together.Example:Input: ["eat", "tea", "tan", "ate", "nat", "bat"],Output:[ ["ate","eat","tea"], ["nat","tan 阅读全文
posted @ 2018-09-25 09:23 jasminemzy 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a non-negative integer fee represen 阅读全文
posted @ 2018-09-25 05:28 jasminemzy 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet 阅读全文
posted @ 2018-09-25 03:37 jasminemzy 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet 阅读全文
posted @ 2018-09-25 03:17 jasminemzy 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction 阅读全文
posted @ 2018-09-24 10:02 jasminemzy 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 29 下一页