随笔分类 -  leetcode

摘要:题目地址:https://leetcode.com/problems/binary-tree-preorder-traversal/description/Given a binary tree, return the preorder traversal of it... 阅读全文
posted @ 2018-05-24 20:58 绿叶萌飞 阅读(171) 评论(0) 推荐(0)
摘要:题目地址:https://leetcode.com/problems/word-pattern/description/Given a pattern and a string str, find if str follows the same pattern.Her... 阅读全文
posted @ 2018-05-22 23:06 绿叶萌飞 阅读(204) 评论(0) 推荐(0)
摘要:题目地址:https://leetcode.com/problems/missing-number/description/Given an array containing n distinct numbers taken from 0, 1, 2, ..., n,... 阅读全文
posted @ 2018-05-22 16:23 绿叶萌飞 阅读(121) 评论(0) 推荐(0)
摘要:题目地址:https://leetcode.com/problems/reverse-string-ii/description/Given a string and an integer k, you need to reverse the first k char... 阅读全文
posted @ 2018-05-10 21:54 绿叶萌飞 阅读(129) 评论(0) 推荐(0)
摘要:题目地址:https://leetcode.com/problems/subtree-of-another-tree/description/Given two non-empty binary trees s and t, check whether tree t ... 阅读全文
posted @ 2018-05-07 17:07 绿叶萌飞 阅读(120) 评论(0) 推荐(0)
摘要:题目地址:https://leetcode.com/problems/arranging-coins/description/You have a total of n coins that you want to form in a staircase shape,... 阅读全文
posted @ 2018-05-06 09:54 绿叶萌飞 阅读(130) 评论(0) 推荐(0)
摘要:题目地址:https://leetcode.com/problems/add-binary/description/Given two binary strings, return their sum (also a binary string).The input ... 阅读全文
posted @ 2018-05-05 21:30 绿叶萌飞 阅读(105) 评论(0) 推荐(0)
摘要:题目地址:https://leetcode.com/problems/length-of-last-word/description/Given a string s consists of upper/lower-case alphabets and empty s... 阅读全文
posted @ 2018-05-05 20:35 绿叶萌飞 阅读(84) 评论(0) 推荐(0)
摘要:题目地址:https://leetcode.com/problems/find-pivot-index/description/Given an array of integers nums, write a method that returns the "pivo... 阅读全文
posted @ 2018-05-05 20:22 绿叶萌飞 阅读(114) 评论(0) 推荐(0)