上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
摘要: 1 """ 2 Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. 3 Example 1: 4 Inp 阅读全文
posted @ 2020-02-24 22:42 yawenw 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 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 阅读全文
posted @ 2020-02-24 17:41 yawenw 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 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 阅读全文
posted @ 2020-02-24 16:23 yawenw 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given a string s that consists of only uppercase English letters, you can perform at most k operations on that string. 3 In one operation, you 阅读全文
posted @ 2020-02-23 20:12 yawenw 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If ther 阅读全文
posted @ 2020-02-22 19:56 yawenw 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Your are given an array of positive integers nums. 3 Count and print the number of (contiguous) subarrays where the product of all the element 阅读全文
posted @ 2020-02-22 18:14 yawenw 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after 阅读全文
posted @ 2020-02-22 17:10 yawenw 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of 阅读全文
posted @ 2020-02-21 22:34 yawenw 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character. 3 Example 1: 4 阅读全文
posted @ 2020-02-21 22:33 yawenw 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing orde 阅读全文
posted @ 2020-02-21 22:32 yawenw 阅读(117) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页