上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 64 下一页
摘要: You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier. Then 阅读全文
posted @ 2020-06-08 11:31 CNoodle 阅读(177) 评论(0) 推荐(0)
摘要: The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the 阅读全文
posted @ 2020-06-08 07:15 CNoodle 阅读(414) 评论(0) 推荐(0)
摘要: Given an array equations of strings that represent relationships between variables, each string equations[i] has length 4 and takes one of two differe 阅读全文
posted @ 2020-06-08 05:42 CNoodle 阅读(157) 评论(0) 推荐(0)
摘要: You are given an array of people, people, which are the attributes of some people in a queue (not necessarily in order). Each people[i] = [hi, ki] rep 阅读全文
posted @ 2020-06-07 02:24 CNoodle 阅读(117) 评论(0) 推荐(0)
摘要: You are given an array of positive integers w where w[i] describes the weight of ith index (0-indexed). We need to call the function pickIndex() which 阅读全文
posted @ 2020-06-06 13:03 CNoodle 阅读(298) 评论(0) 推荐(0)
摘要: Given an integer array nums, return the length of the longest strictly increasing subsequence. Example 1: Input: nums = [10,9,2,5,3,7,101,18] Output: 阅读全文
posted @ 2020-06-06 08:23 CNoodle 阅读(356) 评论(0) 推荐(0)
摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2020-06-05 09:24 CNoodle 阅读(223) 评论(0) 推荐(0)
摘要: A company is planning to interview 2n people. Given the array costs where costs[i] = [aCosti, bCosti], the cost of flying the ith person to city a is  阅读全文
posted @ 2020-06-04 14:49 CNoodle 阅读(254) 评论(0) 推荐(0)
摘要: Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*' where: '?' Matches any single character. 阅读全文
posted @ 2020-06-02 04:30 CNoodle 阅读(458) 评论(0) 推荐(0)
摘要: There are n kids with candies. You are given an integer array candies, where each candies[i] represents the number of candies the ith kid has, and an 阅读全文
posted @ 2020-06-01 12:40 CNoodle 阅读(629) 评论(0) 推荐(0)
摘要: Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order. Example 1: Input: nums = [1, 阅读全文
posted @ 2020-05-31 15:54 CNoodle 阅读(500) 评论(0) 推荐(0)
摘要: Given two integers n and k, return all possible combinations of k numbers chosen from the range [1, n]. You may return the answer in any order. Exampl 阅读全文
posted @ 2020-05-31 11:42 CNoodle 阅读(570) 评论(0) 推荐(0)
摘要: Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb 阅读全文
posted @ 2020-05-31 11:16 CNoodle 阅读(501) 评论(0) 推荐(0)
摘要: Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen nu 阅读全文
posted @ 2020-05-31 11:13 CNoodle 阅读(478) 评论(0) 推荐(0)
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are ar 阅读全文
posted @ 2020-05-30 02:45 CNoodle 阅读(131) 评论(0) 推荐(0)
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2020-05-29 06:33 CNoodle 阅读(221) 评论(0) 推荐(0)
摘要: Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the number of 1's in the binary representation o 阅读全文
posted @ 2020-05-29 01:23 CNoodle 阅读(104) 评论(0) 推荐(0)
摘要: Given an array of n integers nums and an integer target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition  阅读全文
posted @ 2020-05-28 05:16 CNoodle 阅读(97) 评论(0) 推荐(0)
摘要: We want to split a group of n people (labeled from 1 to n) into two groups of any size. Each person may dislike some other people, and they should not 阅读全文
posted @ 2020-05-28 04:45 CNoodle 阅读(138) 评论(0) 推荐(0)
摘要: Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is be 阅读全文
posted @ 2020-05-28 01:43 CNoodle 阅读(216) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 64 下一页