上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 33 下一页
摘要: Given an array of integers and an integer k, you need to find the minimum size of continuous subarrays whose sum equals to k, and return its length. i 阅读全文
posted @ 2020-03-18 05:07 xuan_abc 阅读(198) 评论(0) 推荐(0)
摘要: Numbers can be regarded as product of its factors. For example, 8 = 2 x 2 x 2; = 2 x 4. Write a function that takes an integer n and return all possib 阅读全文
posted @ 2020-03-17 10:08 xuan_abc 阅读(117) 评论(0) 推荐(0)
摘要: Given two Sparse Matrix A and B, return the result of AB. You may assume that A's column number is equal to B's row number. Example Example1 Input: [[ 阅读全文
posted @ 2020-03-16 22:20 xuan_abc 阅读(123) 评论(0) 推荐(0)
摘要: Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is tha 阅读全文
posted @ 2020-03-16 05:48 xuan_abc 阅读(208) 评论(0) 推荐(0)
摘要: Given a non-negative integer represented as non-empty a singly linked list of digits, plus one to the integer. You may assume the integer do not conta 阅读全文
posted @ 2020-03-15 12:01 xuan_abc 阅读(107) 评论(0) 推荐(0)
摘要: Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. Your class will have 阅读全文
posted @ 2020-03-14 11:46 xuan_abc 阅读(110) 评论(0) 推荐(0)
摘要: Given a set of points in the xy-plane, determine the minimum area of a rectangle formed from these points, with sides parallel to the x and y axes. If 阅读全文
posted @ 2020-03-13 11:41 xuan_abc 阅读(128) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, each node in the tree has a distinct value. After deleting all nodes with a value in to_delete, we are left with a fo 阅读全文
posted @ 2020-03-13 10:42 xuan_abc 阅读(104) 评论(0) 推荐(0)
摘要: On a campus represented as a 2D grid, there are N workers and Mbikes, with N <= M. Each worker and bike is a 2D coordinate on this grid. Our goal is t 阅读全文
posted @ 2020-03-13 00:46 xuan_abc 阅读(150) 评论(0) 推荐(0)
摘要: Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in proport 阅读全文
posted @ 2020-03-12 10:48 xuan_abc 阅读(117) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 33 下一页