上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 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 can you cl 阅读全文
posted @ 2020-08-27 14:33 zmachine 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tick 阅读全文
posted @ 2020-08-27 07:26 zmachine 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Given an array of linked-lists lists, each linked list is sorted in ascending order. Merge all the linked-lists into one sort linked-list and return i 阅读全文
posted @ 2020-08-26 10:50 zmachine 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文
posted @ 2020-08-25 19:03 zmachine 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2020-08-25 17:29 zmachine 阅读(66) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increasing su 阅读全文
posted @ 2020-08-25 16:18 zmachine 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. Example 1: Input: [5,7]Output: 4 阅读全文
posted @ 2020-08-23 09:21 zmachine 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Given two sorted arrays nums1 and nums2 of size m and n respectively. Return the median of the two sorted arrays. Follow up: The overall run time comp 阅读全文
posted @ 2020-08-22 11:51 zmachine 阅读(121) 评论(0) 推荐(0) 编辑
摘要: You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operated through *, /, +, -, (, ) to get the value of 24. 阅读全文
posted @ 2020-08-22 10:43 zmachine 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 给你两个有序整数数组 nums1 和 nums2,请你将 nums2 合并到 nums1 中,使 nums1 成为一个有序数组。 说明: 初始化 nums1 和 nums2 的元素数量分别为 m 和 n 。你可以假设 nums1 有足够的空间(空间大小大于或等于 m + n)来保存 nums2 中的 阅读全文
posted @ 2020-08-21 10:35 zmachine 阅读(129) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页