摘要: 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 阅读全文
posted @ 2019-03-28 20:49 起点菜鸟 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Problem Description: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n. 给定一个整数n,生成所有不同的二叉搜索树, 阅读全文
posted @ 2019-03-23 14:54 起点菜鸟 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-16 18:19 起点菜鸟 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 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. 阅读全文
posted @ 2019-03-15 22:29 起点菜鸟 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-12 15:59 起点菜鸟 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-11 13:17 起点菜鸟 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-08 17:02 起点菜鸟 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-07 18:17 起点菜鸟 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-05 17:08 起点菜鸟 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-04 15:46 起点菜鸟 阅读(264) 评论(0) 推荐(0) 编辑