随笔分类 - leetcode
摘要:题目地址:https://leetcode.com/problems/binary-tree-preorder-traversal/description/Given a binary tree, return the preorder traversal of it...
阅读全文
摘要:题目地址:https://leetcode.com/problems/word-pattern/description/Given a pattern and a string str, find if str follows the same pattern.Her...
阅读全文
摘要:题目地址:https://leetcode.com/problems/missing-number/description/Given an array containing n distinct numbers taken from 0, 1, 2, ..., n,...
阅读全文
摘要:题目地址:https://leetcode.com/problems/reverse-string-ii/description/Given a string and an integer k, you need to reverse the first k char...
阅读全文
摘要:题目地址:https://leetcode.com/problems/subtree-of-another-tree/description/Given two non-empty binary trees s and t, check whether tree t ...
阅读全文
摘要:题目地址:https://leetcode.com/problems/arranging-coins/description/You have a total of n coins that you want to form in a staircase shape,...
阅读全文
摘要:题目地址:https://leetcode.com/problems/add-binary/description/Given two binary strings, return their sum (also a binary string).The input ...
阅读全文
摘要:题目地址:https://leetcode.com/problems/length-of-last-word/description/Given a string s consists of upper/lower-case alphabets and empty s...
阅读全文
摘要:题目地址:https://leetcode.com/problems/find-pivot-index/description/Given an array of integers nums, write a method that returns the "pivo...
阅读全文
浙公网安备 33010602011771号