摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Description 题目见 https://leetcode.com/problems/diagonal-traverse-ii/ code 这是考验智商的题目~~ 我的代码 import bisect class Solution(object): def findDiagonalOrder( 阅读全文
摘要:
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 阅读全文
摘要:
Description Given an array of positive integers nums, remove the smallest subarray (possibly empty) such that the sum of the remaining elements is div 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文