05 2019 档案

摘要:A full binary tree is a binary tree where each node has exactly 0 or 2 children. Return a list of all possible full binary trees with nodes. Each elem 阅读全文
posted @ 2019-05-30 22:34 Grandyang 阅读(3447) 评论(0) 推荐(1) 编辑
摘要:You are given an array of strings. Two strings and are special equivalent if after any number of moves , S == T. A move consists of choosing two indic 阅读全文
posted @ 2019-05-28 23:25 Grandyang 阅读(1818) 评论(0) 推荐(0) 编辑
摘要:On a grid, we place some cubes. Each value represents a tower of cubes placed on top of grid cell . Return the total surface area of the resulting sha 阅读全文
posted @ 2019-05-26 23:28 Grandyang 阅读(2038) 评论(0) 推荐(0) 编辑
摘要:You have a list of and a , and you want to know which words in matches the pattern. A word matches the pattern if there exists a permutation of letter 阅读全文
posted @ 2019-05-24 22:06 Grandyang 阅读(2400) 评论(0) 推荐(0) 编辑
摘要:Return any binary tree that matches the given preorder and postorder traversals. Values in the traversals and are distinct positive integers. Example 阅读全文
posted @ 2019-05-22 23:10 Grandyang 阅读(4097) 评论(2) 推荐(1) 编辑
摘要:Alice and Bob have candy bars of different sizes: is the size of the th bar of candy that Alice has, and is the size of the th bar of candy that Bob h 阅读全文
posted @ 2019-05-20 19:45 Grandyang 阅读(2246) 评论(0) 推荐(0) 编辑
摘要:On a 2 dimensional grid with rows and columns, we start at facing east. Here, the north west corner of the grid is at the first row and column, and th 阅读全文
posted @ 2019-05-18 23:04 Grandyang 阅读(2771) 评论(0) 推荐(1) 编辑
摘要:We are given two sentences and . (A sentence is a string of space separated words. Each word consists only of lowercase letters.) A word is uncommon i 阅读全文
posted @ 2019-05-16 20:42 Grandyang 阅读(1687) 评论(0) 推荐(1) 编辑
摘要:On a grid, we place some cubes that are axis aligned with the x, y, and z axes. Each value represents a tower of cubes placed on top of grid cell . No 阅读全文
posted @ 2019-05-15 00:06 Grandyang 阅读(1880) 评论(0) 推荐(0) 编辑
摘要:The th person has weight , and each boat can carry a maximum weight of . Each boat carries at most 2 people at the same time, provided the sum of the  阅读全文
posted @ 2019-05-12 23:48 Grandyang 阅读(2760) 评论(1) 推荐(0) 编辑
摘要:An encoded string is given. To find and write the decoded string to a tape, the encoded string is read one character at a time and the following steps 阅读全文
posted @ 2019-05-10 23:20 Grandyang 阅读(4832) 评论(1) 推荐(0) 编辑
摘要:引言 为什么想到制作这么一个插件呢,是因为博主在更新微信公众号【刷尽天下】的后台数据库时,需要有博客园题目帖子的链接,那么就要从这篇帖子 "LeetCode All in One 题目讲解汇总(持续更新中...)" 中提取各个题目的链接。之前博主都是使用的都是Excel的插件 "Kutools" 来 阅读全文
posted @ 2019-05-09 10:06 Grandyang 阅读(2340) 评论(0) 推荐(0) 编辑
摘要:Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of sto 阅读全文
posted @ 2019-05-07 22:44 Grandyang 阅读(7847) 评论(4) 推荐(0) 编辑
摘要:Given a non empty, singly linked list with head node , return a middle node of linked list. If there are two middle nodes, return the second middle no 阅读全文
posted @ 2019-05-06 01:00 Grandyang 阅读(3350) 评论(0) 推荐(0) 编辑
摘要:Koko loves to eat bananas. There are piles of bananas, the th pile has bananas. The guards have gone and will come back in hours. Koko can decide her 阅读全文
posted @ 2019-05-03 23:43 Grandyang 阅读(5553) 评论(1) 推荐(1) 编辑
摘要:A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three possible types of commands: : turn left 90 degr 阅读全文
posted @ 2019-05-01 22:17 Grandyang 阅读(2816) 评论(0) 推荐(1) 编辑

Fork me on GitHub