上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: Description You are given the array nums consisting of n positive integers. You computed the sum of all non-empty continuous subarrays from the array 阅读全文
posted @ 2021-08-17 18:51 tmortred 阅读(71) 评论(0) 推荐(0) 编辑
摘要: Description Given an array of events where events[i] = [startDayi, endDayi]. Every event i starts at startDayi and ends at endDayi. You can attend an 阅读全文
posted @ 2021-03-27 18:05 tmortred 阅读(45) 评论(0) 推荐(0) 编辑
摘要: Description 题目见 https://leetcode.com/problems/diagonal-traverse-ii/ code 这是考验智商的题目~~ 我的代码 import bisect class Solution(object): def findDiagonalOrder( 阅读全文
posted @ 2021-03-07 22:09 tmortred 阅读(47) 评论(0) 推荐(0) 编辑
摘要: Description Some people will make friend requests. The list of their ages is given and ages[i] is the age of the ith person. Person A will NOT friend 阅读全文
posted @ 2021-03-07 16:40 tmortred 阅读(39) 评论(0) 推荐(0) 编辑
摘要: Description Given an array of positive integers nums, remove the smallest subarray (possibly empty) such that the sum of the remaining elements is div 阅读全文
posted @ 2021-03-06 22:58 tmortred 阅读(93) 评论(0) 推荐(0) 编辑
摘要: description Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the who 阅读全文
posted @ 2021-03-05 22:09 tmortred 阅读(31) 评论(0) 推荐(0) 编辑
摘要: Description You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you sho 阅读全文
posted @ 2021-02-23 15:54 tmortred 阅读(33) 评论(0) 推荐(0) 编辑
摘要: description Given an array of integers A, consider all non-empty subsequences of A. For any sequence S, let the width of S be the difference between t 阅读全文
posted @ 2021-02-06 16:33 tmortred 阅读(33) 评论(0) 推荐(0) 编辑
摘要: Description Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between 阅读全文
posted @ 2020-07-26 16:10 tmortred 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Descrption Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive. Range sum S(i, j) is defined as the sum 阅读全文
posted @ 2020-07-22 19:56 tmortred 阅读(166) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页