摘要: Given a non-empty binary tree, find the maximum path sum.For this problem, a path is defined as any sequence of nodes from some starting node to any n 阅读全文
posted @ 2018-09-16 14:01 jasminemzy 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace 阅读全文
posted @ 2018-09-16 13:19 jasminemzy 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could 阅读全文
posted @ 2018-09-16 08:17 jasminemzy 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑