摘要:
Problem Description: Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of 阅读全文
摘要:
Problem Description: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n. 给定一个整数n,生成所有不同的二叉搜索树, 阅读全文
摘要:
Problem Description: Implement a MyCalendarTwo class to store your events. A new event can be added if adding the event will not cause a triple bookin 阅读全文
摘要:
Problem description: Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. 阅读全文
摘要:
Problem Description: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest 阅读全文
摘要:
Problem Description: Given an array A of integers, we must modify the array in the following way: we choose an i and replace A[i] with -A[i], and we r 阅读全文
摘要:
Problem We consider a number to be beautiful if it consists only of the digit 1 repeated one or more times. Not all numbers are beautiful, but we can 阅读全文
摘要:
Problem Description: Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subset 阅读全文
摘要:
Problem Description: Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to 阅读全文
摘要:
Problem Descriptino: On a N x N grid of cells, each cell (x, y)with 0 <= x < N and 0 <= y < N has a lamp. Initially, some number of lamps are on. lamp 阅读全文