上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 40 下一页
摘要: Decode String (M) 题目 Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the 阅读全文
posted @ 2020-11-19 21:59 墨云黑 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Mirror Reflection (M) 题目 There is a special square room with mirrors on each of the four walls. Except for the southwest corner, there are receptors o 阅读全文
posted @ 2020-11-17 19:35 墨云黑 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Longest Mountain in Array (M) 题目 Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold: B.length >= 3 There exists 阅读全文
posted @ 2020-11-16 16:48 墨云黑 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Range Sum of BST (E) 题目 Given the root node of a binary search tree, return the sum of values of all nodes with a value in the range [low, high]. Exam 阅读全文
posted @ 2020-11-15 17:04 墨云黑 阅读(88) 评论(0) 推荐(0) 编辑
摘要: Poor Pigs (H) 题目 There are 1000 buckets, one and only one of them is poisonous, while the rest are filled with water. They all look identical. If a pi 阅读全文
posted @ 2020-11-14 17:14 墨云黑 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Populating Next Right Pointers in Each Node (M) 题目 You are given a perfect binary tree where all leaves are on the same level, and every parent has tw 阅读全文
posted @ 2020-11-13 19:27 墨云黑 阅读(76) 评论(0) 推荐(0) 编辑
摘要: Valid Square (M) 题目 Given the coordinates of four points in 2D space, return whether the four points could construct a square. The coordinate (x,y) of 阅读全文
posted @ 2020-11-11 23:11 墨云黑 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Flipping an Image (E) 题目 Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an i 阅读全文
posted @ 2020-11-10 21:30 墨云黑 阅读(74) 评论(0) 推荐(0) 编辑
摘要: Maximum Difference Between Node and Ancestor (M) 题目 Given the root of a binary tree, find the maximum value V for which there exist different nodes A 阅读全文
posted @ 2020-11-10 09:30 墨云黑 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Tilt (E) 题目 Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference 阅读全文
posted @ 2020-11-08 16:27 墨云黑 阅读(106) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 40 下一页