上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 29 下一页
摘要: Given a grid where each entry is only 0 or 1, find the number of corner rectangles.A corner rectangle is 4 distinct 1s on the grid that form an axis-a 阅读全文
posted @ 2018-09-16 05:57 jasminemzy 阅读(274) 评论(0) 推荐(0) 编辑
摘要: There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following req 阅读全文
posted @ 2018-09-16 05:01 jasminemzy 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted integer array, find the smallest missing positive integer.Example 1:Input: [1,2,0]Output: 3Example 2:Input: [3,4,-1,1]Output: 2Examp 阅读全文
posted @ 2018-09-16 04:38 jasminemzy 阅读(118) 评论(0) 推荐(0) 编辑
摘要: There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list of non-empty word 阅读全文
posted @ 2018-09-15 13:50 jasminemzy 阅读(564) 评论(0) 推荐(0) 编辑
摘要: Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), find the minimum number of conference room 阅读全文
posted @ 2018-09-15 12:14 jasminemzy 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. 阅读全文
posted @ 2018-09-15 11:01 jasminemzy 阅读(156) 评论(0) 推荐(0) 编辑
摘要: You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note:You have to rotate the image in-place, which me 阅读全文
posted @ 2018-09-14 13:32 jasminemzy 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or *between the di 阅读全文
posted @ 2018-09-14 12:17 jasminemzy 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Given a set of words (without duplicates), find all word squares you can build from them.A sequence of words forms a valid word square if the kth row 阅读全文
posted @ 2018-09-14 01:34 jasminemzy 阅读(160) 评论(0) 推荐(0) 编辑
摘要: You are given a m x n 2D grid initialized with these three possible values.1. -1 - A wall or an obstacle.2. 0 - A gate.3. INF - Infinity means an empt 阅读全文
posted @ 2018-09-14 01:05 jasminemzy 阅读(339) 评论(1) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 29 下一页