摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文