/Just-Code

Just Code ! 针对面试训练算法题, 目前包括字节跳动面试题、 LeetCode 和剑指 offer ,持续扩容中 :star:

Primary LanguagePythonMIT LicenseMIT

Just-Code


What's new ?!

  • 510 题达成!!!继续努力。
  • 新增了Leetcode收费的字节跳动题目列表,LeetCode字节跳动分类
  • 新增了Leetcode收费的腾讯题目列表,LeetCode腾讯分类
  • 字节跳动面试题完成 90% 。
  • 剑指offer完成。

Repo 简介

  • 逐步收录常见面试算法题。

  • 国内算法题大致都是从 剑指offerLeetCode 上直接拿来的比较经典的题。

  • 面试算法题难度大概就是 剑指offer难度LeetCode上easy、medium左右难度 的题目。

  • 持续更新,如果对您有帮助,小手一点, Star 走一走,靴靴!

  • 剑指 Offer 题解

  • Leetcode 题解

  • 字节跳动面经总结算法题 分类 因为是英文版LeetCode所以第一次打开可能重定向跳转到**力扣官网,关闭重新打开即可。


剑指 Offer 题解

  • 剑指 Offer 题解 如果您有更好或者不同的解法,请提 issue 一起进步,靴靴!

  • 《剑指offer》剖析了80个典型的编程面试题,系统整理基础知识、代码质量、解题思路、优化效率和综合能力这5个面试要点。但是我刷题只有牛客网上的66题。

  • 如果是单纯的面试需求,剑指offer的优先级肯定是在Leetcode之前,总的说它有三个优点: 1.很可能在面试中出现原题 2.约66题,题量少,但是涵盖的内容较全 3.能培养一个良好的刷题习惯

  • 它的缺点是: 1.只有66题,刷着容易过拟合 2.动态规划的题比较少,因此需要在Leetcode上专项训练。

推荐的刷题网站:

  1. 牛客网
  • 优点:有氛围非常好的算法讨论区,对于一道题可以有很多人一起讨论。
  • 缺点:题目数量有限,第二版的部分题目未收录,而且测试用例较少不完备。无法自测,每次必须提交。
  1. Acwing
  • 优点:题目收录完备,并且测试用例较多,有体验比较好的测试台自测。
  • 缺点:平台较为小众,可能解法没有牛客网的多,但是希望大家看看 Yaxe 的题解哈哈。

Leetcode 题解

字节跳动面经总结算法题

  • 从看准网和牛客笔经面经区扒取了最近两年内的字节跳动后端部分的所有面试算法题,分类整理,并附我的解法,希望对你有所帮助。
  • 因为字节跳动的题目分类必须买 LeetCode 会员才可以看,所以我把题目都添加了一个 list ,然后点击 字节跳动分类 就可以查看我分享的题目 list 了。因为是英文版LeetCode所以第一次打开可能重定向跳转到**力扣官网,关闭重新打开即可。

分类如下:

代码仓库

# Title Solution Acceptance Difficulty Topics
0001 Two Sum Python3 44.77% Easy Array | Hash Table
0002 Add Two Numbers Python3 32.23% Medium Linked List | Math
0003 Longest Substring Without Repeating Characters Python3 29.15% Medium Hash Table | Two Pointers | String | Sliding Window
0005 Longest Palindromic Substring Python3 28.32% Medium String | Dynamic Programming
0006 ZigZag Conversion Python3 33.91% Medium String
0007 Reverse Integer Python3 25.55% Easy Math
0008 String to Integer (atoi) Python3 14.85% Medium Math | String
0009 Palindrome Number Python3 45.67% Easy Math
0010 Regular Expression Matching Python3 25.93% Hard String | Dynamic Programming | Backtracking
0011 Container With Most Water Python3 47.70% Medium Array | Two Pointers
0012 Integer to Roman Python3 52.71% Medium Math | String
0013 Roman to Integer Python3 53.77% Easy Math | String
0014 Longest Common Prefix Python3 34.38% Easy String
0015 3Sum Python3 25.23% Medium Array | Two Pointers
0016 3Sum Closest Python3 45.70% Medium Array | Two Pointers
0017 Letter Combinations of a Phone Number Python3 43.79% Medium String | Backtracking
0019 Remove Nth Node From End of List Python3 34.62% Medium Linked List | Two Pointers
0020 Valid Parentheses Python3 37.58% Easy String | Stack
0021 Merge Two Sorted Lists Python3 50.01% Easy Linked List
0022 Generate Parentheses Python3 58.19% Medium String | Backtracking
0023 Merge k Sorted Lists Python3 37.02% Hard Linked List | Divide and Conquer | Heap
0024 Swap Nodes in Pairs Python3 47.17% Medium Linked List
0025 Reverse Nodes in k-Group Python3 38.62% Hard Linked List
0026 Remove Duplicates from Sorted Array Python3 42.51% Easy Array | Two Pointers
0027 Remove Element Python3 46.12% Easy Array | Two Pointers
0031 Next Permutation Python3 31.37% Medium Array
0033 Search in Rotated Sorted Array Python3 33.38% Medium Array | Binary Search
0034 Find First and Last Position of Element in Sorted Array Python3 34.60% Medium Array | Binary Search
0035 Search Insert Position Python3 41.29% Easy Array | Binary Search
0041 First Missing Positive Python3 30.20% Hard Array
0042 Trapping Rain Water Python3 45.70% Hard Array | Two Pointers | Stack
0047 Permutations II Python3 43.08% Medium Backtracking
0048 Rotate Image Python3 51.77% Medium Array
0049 Group Anagrams Python3 50.81% Medium Hash Table | String
0050 Pow(x, n) Python3 28.81% Medium Math | Binary Search
0053 Maximum Subarray Python3 45.07% Easy Array | Divide and Conquer | Dynamic Programming
0054 Spiral Matrix Python3 32.03% Medium Array
0056 Merge Intervals Python3 37.24% Medium Array | Sort
0057 Insert Interval Python3 32.12% Hard Array | Sort
0058 Length of Last Word Python3 32.34% Easy String
0059 Spiral Matrix II Python3 49.90% Medium Array
0061 Rotate List Python3 28.35% Medium Linked List | Two Pointers
0062 Unique Paths Python3 50.11% Medium Array | Dynamic Programming
0063 Unique Paths II Python3 33.76% Medium Array | Dynamic Programming
0064 Minimum Path Sum Python3 49.54% Medium Array | Dynamic Programming
0065 Valid Number Python3 14.52% Hard Math | String
0066 Plus One Python3 41.77% Easy Array
0067 Add Binary Python3 41.33% Easy Math | String
0069 Sqrt(x) Python3 32.44% Easy Math | Binary Search
0070 Climbing Stairs Python3 45.51% Easy Dynamic Programming
0071 Simplify Path Python3 30.26% Medium String | Stack
0072 Edit Distance Python3 40.24% Hard String | Dynamic Programming
0073 Set Matrix Zeroes Python3 41.35% Medium Array
0074 Search a 2D Matrix Python3 35.52% Medium Array | Binary Search
0075 Sort Colors Python3 43.83% Medium Array | Two Pointers | Sort
0076 Minimum Window Substring Python3 32.56% Hard Hash Table | Two Pointers | String | Sliding Window
0078 Subsets Python3 56.34% Medium Array | Backtracking | Bit Manipulation
0079 Word Search Python3 32.93% Medium Array | Backtracking
0080 Remove Duplicates from Sorted Array II Python3 41.87% Medium Array | Two Pointers
0082 Remove Duplicates from Sorted List II Python3 34.63% Medium Linked List
0083 Remove Duplicates from Sorted List Python3 43.74% Easy Linked List
0085 Maximal Rectangle Python3 35.17% Hard Array | Hash Table | Dynamic Programming | Stack
0086 Partition List Python3 39.00% Medium Linked List | Two Pointers
0088 Merge Sorted Array Python3 37.41% Easy Array | Two Pointers
0091 Decode Ways Python3 23.22% Medium String | Dynamic Programming
0092 Reverse Linked List II Python3 36.57% Medium Linked List
0094 Binary Tree Inorder Traversal Python3 59.50% Medium Hash Table | Stack | Tree
0095 Unique Binary Search Trees II Python3 37.58% Medium Dynamic Programming | Tree
0096 Unique Binary Search Trees Python3 48.60% Medium Dynamic Programming | Tree
0098 Validate Binary Search Tree Python3 26.67% Medium Tree | Depth-first Search
0099 Recover Binary Search Tree Python3 36.38% Hard Tree | Depth-first Search
0100 Same Tree Python3 51.23% Easy Tree | Depth-first Search
0101 Symmetric Tree Python3 44.96% Easy Tree | Depth-first Search | Breadth-first Search
0102 Binary Tree Level Order Traversal Python3 50.98% Medium Tree | Breadth-first Search
0103 Binary Tree Zigzag Level Order Traversal Python3 44.09% Medium Stack | Tree | Breadth-first Search
0104 Maximum Depth of Binary Tree Python3 62.93% Easy Tree | Depth-first Search
0105 Construct Binary Tree from Preorder and Inorder Traversal Python3 44.24% Medium Array | Tree | Depth-first Search
0106 Construct Binary Tree from Inorder and Postorder Traversal Python3 41.91% Medium Array | Tree | Depth-first Search
0107 Binary Tree Level Order Traversal II Python3 48.95% Easy Tree | Breadth-first Search
0108 Convert Sorted Array to Binary Search Tree Python3 53.67% Easy Tree | Depth-first Search
0109 Convert Sorted List to Binary Search Tree Python3 43.51% Medium Linked List | Depth-first Search
0110 Balanced Binary Tree Python3 42.09% Easy Tree | Depth-first Search
0111 Minimum Depth of Binary Tree Python3 36.18% Easy Tree | Depth-first Search | Breadth-first Search
0112 Path Sum Python3 39.18% Easy Tree | Depth-first Search
0113 Path Sum II Python3 43.10% Medium Tree | Depth-first Search
0114 Flatten Binary Tree to Linked List Python3 45.15% Medium Tree | Depth-first Search
0116 Populating Next Right Pointers in Each Node Python3 40.34% Medium Tree | Depth-first Search
0117 Populating Next Right Pointers in Each Node II Python3 36.24% Medium Tree | Depth-first Search
0118 Pascal's Triangle Python3 48.82% Easy Array
0119 Pascal's Triangle II Python3 45.95% Easy Array
0120 Triangle Python3 41.41% Medium Array | Dynamic Programming
0121 Best Time to Buy and Sell Stock Python3 48.72% Easy Array | Dynamic Programming
0122 Best Time to Buy and Sell Stock II Python3 53.65% Easy Array | Greedy
0123 Best Time to Buy and Sell Stock III Python3 35.37% Hard Array | Dynamic Programming
0124 Binary Tree Maximum Path Sum Python3 31.60% Hard Tree | Depth-first Search
0125 Valid Palindrome Python3 33.10% Easy Two Pointers | String
0129 Sum Root to Leaf Numbers Python3 44.49% Medium Tree | Depth-first Search
0130 Surrounded Regions Python3 24.60% Medium Depth-first Search | Breadth-first Search | Union Find
0136 Single Number Python3 62.06% Easy Hash Table | Bit Manipulation
0137 Single Number II Python3 47.73% Medium Bit Manipulation
0138 Copy List with Random Pointer Python3 30.50% Medium Hash Table | Linked List
0139 Word Break Python3 37.33% Medium Dynamic Programming
0142 Linked List Cycle II Python3 34.21% Medium Linked List | Two Pointers
0143 Reorder List Python3 33.18% Medium Linked List
0144 Binary Tree Preorder Traversal Python3 53.19% Medium Stack | Tree
0145 Binary Tree Postorder Traversal Python3 51.15% Hard Stack | Tree
0150 Evaluate Reverse Polish Notation Python3 33.97% Medium Stack
0151 Reverse Words in a String Python3 18.51% Medium String
0152 Maximum Product Subarray Python3 30.38% Medium Array | Dynamic Programming
0153 Find Minimum in Rotated Sorted Array Python3 43.87% Medium Array | Binary Search
0154 Find Minimum in Rotated Sorted Array II Python3 39.98% Hard Array | Binary Search
0155 Min Stack Python3 39.70% Easy Stack | Design
0162 Find Peak Element Python3 42.18% Medium Array | Binary Search
0167 Two Sum II - Input array is sorted Python3 51.86% Easy Array | Two Pointers | Binary Search
0168 Excel Sheet Column Title Python3 29.86% Easy Math
0169 Majority Element Python3 54.86% Easy Array | Divide and Conquer | Bit Manipulation
0171 Excel Sheet Column Number Python3 52.72% Easy Math
0179 Largest Number Python3 26.92% Medium Sort
0189 Rotate Array Python3 32.10% Easy Array
0198 House Robber Python3 41.45% Easy Dynamic Programming
0199 Binary Tree Right Side View Python3 50.45% Medium Tree | Depth-first Search | Breadth-first Search
0200 Number of Islands Python3 43.72% Medium Depth-first Search | Breadth-first Search | Union Find
0201 Bitwise AND of Numbers Range Python3 36.80% Medium Bit Manipulation
0202 Happy Number Python3 47.41% Easy Hash Table | Math
0203 Remove Linked List Elements Python3 36.70% Easy Linked List
0204 Count Primes Python3 30.16% Easy Hash Table | Math
0206 Reverse Linked List Python3 58.03% Easy Linked List
0209 Minimum Size Subarray Sum Python3 36.01% Medium Array | Two Pointers | Binary Search
0213 House Robber II Python3 35.73% Medium Dynamic Programming
0215 Kth Largest Element in an Array Python3 50.95% Medium Divide and Conquer | Heap
0217 Contains Duplicate Python3 53.98% Easy Array | Hash Table
0219 Contains Duplicate II Python3 36.32% Easy Array | Hash Table
0220 Contains Duplicate III Python3 20.28% Medium Sort | Ordered Map
0221 Maximal Square Python3 34.62% Medium Dynamic Programming
0222 Count Complete Tree Nodes Python3 38.82% Medium Binary Search | Tree
0226 Invert Binary Tree Python3 60.46% Easy Tree
0230 Kth Smallest Element in a BST Python3 54.43% Medium Binary Search | Tree
0231 Power of Two Python3 42.54% Easy Math | Bit Manipulation
0232 Implement Queue using Stacks Python3 45.84% Easy Stack | Design
0233 Number of Digit One Python3 30.78% Hard Math
0234 Palindrome Linked List Python3 37.38% Easy Linked List | Two Pointers
0235 Lowest Common Ancestor of a Binary Search Tree Python3 47.05% Easy Tree
0236 Lowest Common Ancestor of a Binary Tree Python3 40.98% Medium Tree
0237 Delete Node in a Linked List Python3 56.65% Easy Linked List
0239 Sliding Window Maximum Python3 40.03% Hard Heap | Sliding Window
0240 Search a 2D Matrix II Python3 41.90% Medium Binary Search | Divide and Conquer
0242 Valid Anagram Python3 54.22% Easy Hash Table | Sort
0257 Binary Tree Paths Python3 48.02% Easy Tree | Depth-first Search
0260 Single Number III Python3 58.74% Medium Bit Manipulation
0263 Ugly Number Python3 41.07% Easy Math
0264 Ugly Number II Python3 37.98% Medium Math | Dynamic Programming | Heap
0268 Missing Number Python3 49.60% Easy Array | Math | Bit Manipulation
0278 First Bad Version Python3 32.03% Easy Binary Search
0279 Perfect Squares Python3 43.46% Medium Math | Dynamic Programming | Breadth-first Search
0283 Move Zeroes Python3 55.63% Easy Array | Two Pointers
0287 Find the Duplicate Number Python3 51.65% Medium Array | Two Pointers | Binary Search
0290 Word Pattern Python3 35.88% Easy Hash Table
0292 Nim Game Python3 55.92% Easy Brainteaser | Minimax
0297 Serialize and Deserialize Binary Tree Python3 43.77% Hard Tree | Design
0300 Longest Increasing Subsequence Python3 41.69% Medium Binary Search | Dynamic Programming
0303 Range Sum Query - Immutable Python3 40.70% Easy Dynamic Programming
0312 Burst Balloons Python3 49.17% Hard Divide and Conquer | Dynamic Programming
0315 Count of Smaller Numbers After Self Python3 39.99% Hard Binary Search | Divide and Conquer | Sort | Binary Indexed Tree | Segment Tree
0319 Bulb Switcher Python3 44.67% Medium Math | Brainteaser
0322 Coin Change Python3 32.55% Medium Dynamic Programming
0326 Power of Three Python3 41.88% Easy Math
0328 Odd Even Linked List Python3 51.09% Medium Linked List
0329 Longest Increasing Path in a Matrix Python3 41.49% Hard Depth-first Search | Topological Sort | Memoization
0337 House Robber III Python3 49.24% Medium Tree | Depth-first Search
0338 Counting Bits Python3 66.06% Medium Dynamic Programming | Bit Manipulation
0342 Power of Four Python3 40.89% Easy Bit Manipulation
0343 Integer Break Python3 48.89% Medium Math | Dynamic Programming
0344 Reverse String Python3 64.70% Easy Two Pointers | String
0345 Reverse Vowels of a String Python3 42.49% Easy Two Pointers | String
0349 Intersection of Two Arrays Python3 57.93% Easy Hash Table | Two Pointers | Binary Search | Sort
0350 Intersection of Two Arrays II Python3 49.65% Easy Hash Table | Two Pointers | Binary Search | Sort
0357 Count Numbers with Unique Digits Python3 47.63% Medium Math | Dynamic Programming | Backtracking
0371 Sum of Two Integers Python3 50.77% Easy Bit Manipulation
0372 Super Pow Python3 36.04% Medium Math
0378 Kth Smallest Element in a Sorted Matrix Python3 51.36% Medium Binary Search | Heap
0383 Ransom Note Python3 51.04% Easy String
0384 Shuffle an Array Python3 51.26% Medium
0387 First Unique Character in a String Python3 50.99% Easy Hash Table | String
0389 Find the Difference Python3 53.93% Easy Hash Table | Bit Manipulation
0400 Nth Digit Python3 30.81% Medium Math
0404 Sum of Left Leaves Python3 49.89% Easy Tree
0409 Longest Palindrome Python3 49.03% Easy Hash Table
0412 Fizz Buzz Python3 60.45% Easy
0415 Add Strings Python3 45.26% Easy String
0429 N-ary Tree Level Order Traversal Python3 61.29% Medium Tree | Breadth-first Search
0430 Flatten a Multilevel Doubly Linked List Python3 45.96% Medium Linked List | Depth-first Search
0434 Number of Segments in a String Python3 37.32% Easy String
0437 Path Sum III Python3 44.21% Easy Tree
0442 Find All Duplicates in an Array Python3 62.97% Medium Array
0445 Add Two Numbers II Python3 51.93% Medium Linked List
0459 Repeated Substring Pattern Python3 40.73% Easy String
0461 Hamming Distance Python3 70.80% Easy Bit Manipulation
0463 Island Perimeter Python3 62.17% Easy Hash Table
0470 Implement Rand10() Using Rand7() Python3 45.54% Medium Random | Rejection Sampling
0476 Number Complement Python3 62.89% Easy Bit Manipulation
0485 Max Consecutive Ones Python3 55.80% Easy Array
0496 Next Greater Element I Python3 61.21% Easy Stack
0500 Keyboard Row Python3 63.19% Easy Hash Table
0503 Next Greater Element II Python3 52.85% Medium Stack
0508 Most Frequent Subtree Sum Python3 55.93% Medium Hash Table | Tree
0509 Fibonacci Number Python3 66.62% Easy Array
0513 Find Bottom Left Tree Value Python3 59.74% Medium Tree | Depth-first Search | Breadth-first Search
0515 Find Largest Value in Each Tree Row Python3 58.85% Medium Tree | Depth-first Search | Breadth-first Search
0520 Detect Capital Python3 52.81% Easy String
0521 Longest Uncommon Subsequence I Python3 56.95% Easy String
0523 Continuous Subarray Sum Python3 24.38% Medium Math | Dynamic Programming
0530 Minimum Absolute Difference in BST Python3 51.80% Easy Tree
0538 Convert BST to Greater Tree Python3 52.80% Easy Tree
0540 Single Element in a Sorted Array Python3 57.54% Medium
0541 Reverse String II Python3 46.63% Easy String
0543 Diameter of Binary Tree Python3 47.80% Easy Tree
0551 Student Attendance Record I Python3 46.12% Easy String
0556 Next Greater Element III Python3 30.68% Medium String
0557 Reverse Words in a String III Python3 66.34% Easy String
0559 Maximum Depth of N-ary Tree Python3 66.51% Easy Tree | Depth-first Search | Breadth-first Search
0561 Array Partition I Python3 70.39% Easy Array
0575 Distribute Candies Python3 60.30% Easy Hash Table
0583 Delete Operation for Two Strings Python3 46.15% Medium String
0589 N-ary Tree Preorder Traversal Python3 69.40% Easy Tree
0590 N-ary Tree Postorder Traversal Python3 69.38% Easy Tree
0606 Construct String from Binary Tree Python3 52.53% Easy String | Tree
0611 Valid Triangle Number Python3 46.76% Medium Array
0617 Merge Two Binary Trees Python3 71.76% Easy Tree
0637 Average of Levels in Binary Tree Python3 60.31% Easy Tree
0643 Maximum Average Subarray I Python3 40.47% Easy Array
0653 Two Sum IV - Input is a BST Python3 53.74% Easy Tree
0654 Maximum Binary Tree Python3 77.59% Medium Tree
0655 Print Binary Tree Python3 52.91% Medium Tree
0657 Robot Return to Origin Python3 72.49% Easy String
0662 Maximum Width of Binary Tree Python3 39.56% Medium Tree
0669 Trim a Binary Search Tree Python3 61.29% Easy Tree
0670 Maximum Swap Python3 41.22% Medium Array | Math
0671 Second Minimum Node In a Binary Tree Python3 43.05% Easy Tree
0701 Insert into a Binary Search Tree Python3 77.75% Medium Tree
0704 Binary Search Python3 49.83% Easy Binary Search
0707 Design Linked List Python3 21.13% Medium Linked List | Design
0709 To Lower Case Python3 78.02% Easy String
0725 Split Linked List in Parts Python3 50.14% Medium Linked List
0728 Self Dividing Numbers Python3 72.09% Easy Math
0739 Daily Temperatures Python3 61.20% Medium Hash Table | Stack
0744 Find Smallest Letter Greater Than Target Python3 44.59% Easy Binary Search
0763 Partition Labels Python3 72.91% Medium Two Pointers | Greedy
0771 Jewels and Stones Python3 84.06% Easy Hash Table
0781 Rabbits in Forest Python3 52.73% Medium Hash Table | Math
0783 Minimum Distance Between BST Nodes Python3 51.05% Easy Tree | Recursion
0788 Rotated Digits Python3 55.77% Easy String
0791 Custom Sort String Python3 63.79% Medium String
0804 Unique Morse Code Words Python3 75.51% Easy String
0807 Max Increase to Keep City Skyline Python3 82.40% Medium
0811 Subdomain Visit Count Python3 67.01% Easy Hash Table
0814 Binary Tree Pruning Python3 72.37% Medium Tree
0817 Linked List Components Python3 55.88% Medium Linked List
0819 Most Common Word Python3 43.16% Easy String
0824 Goat Latin Python3 59.66% Easy String
0832 Flipping an Image Python3 73.97% Easy Array
0841 Keys and Rooms Python3 61.85% Medium Depth-first Search | Graph
0852 Peak Index in a Mountain Array Python3 70.43% Easy Binary Search
0859 Buddy Strings Python3 27.79% Easy String
0867 Transpose Matrix Python3 63.85% Easy Array
0872 Leaf-Similar Trees Python3 64.26% Easy Tree | Depth-first Search
0874 Walking Robot Simulation Python3 33.47% Easy Greedy
0876 Middle of the Linked List Python3 65.45% Easy Linked List
0877 Stone Game Python3 62.76% Medium Math | Dynamic Programming | Minimax
0884 Uncommon Words from Two Sentences Python3 61.43% Easy Hash Table
0894 All Possible Full Binary Trees Python3 72.31% Medium Tree | Recursion
0897 Increasing Order Search Tree Python3 66.40% Easy Tree | Depth-first Search
0905 Sort Array By Parity Python3 73.11% Easy Array
0908 Smallest Range I Python3 65.04% Easy Math
0912 Sort an Array Python3 62.77% Medium
0917 Reverse Only Letters Python3 56.54% Easy String
0921 Minimum Add to Make Parentheses Valid Python3 70.99% Medium Stack | Greedy
0922 Sort Array By Parity II Python3 67.42% Easy Array | Sort
0929 Unique Email Addresses Python3 68.20% Easy String
0931 Minimum Falling Path Sum Python3 59.83% Medium Dynamic Programming
0933 Number of Recent Calls Python3 69.73% Easy Queue
0938 Range Sum of BST Python3 78.53% Easy Tree | Recursion
0942 DI String Match Python3 70.19% Easy Math
0944 Delete Columns to Make Sorted Python3 69.67% Easy Greedy
0946 Validate Stack Sequences Python3 58.45% Medium Stack
0950 Reveal Cards In Increasing Order Python3 72.64% Medium Array
0951 Flip Equivalent Binary Trees Python3 65.23% Medium Tree
0958 Check Completeness of a Binary Tree Python3 50.40% Medium Tree
0961 N-Repeated Element in Size 2N Array Python3 72.73% Easy Hash Table
0965 Univalued Binary Tree Python3 66.89% Easy Tree
0968 Binary Tree Cameras Python3 36.40% Hard Dynamic Programming | Tree | Depth-first Search
0969 Pancake Sorting Python3 63.15% Medium Array | Sort
0977 Squares of a Sorted Array Python3 71.87% Easy Array | Two Pointers
0979 Distribute Coins in Binary Tree Python3 68.05% Medium Tree | Depth-first Search
0986 Interval List Intersections Python3 64.58% Medium Two Pointers
0987 Vertical Order Traversal of a Binary Tree Python3 33.50% Medium Hash Table | Tree
0988 Smallest String Starting From Leaf Python3 44.84% Medium Tree | Depth-first Search
0989 Add to Array-Form of Integer Python3 43.99% Easy Array
0993 Cousins in Binary Tree Python3 51.88% Easy Tree | Breadth-first Search
0998 Maximum Binary Tree II Python3 61.65% Medium Tree
1002 Find Common Characters Python3 66.03% Easy Array | Hash Table
1004 Max Consecutive Ones III Python3 55.33% Medium Two Pointers | Sliding Window
1008 Construct Binary Search Tree from Preorder Traversal Python3 74.15% Medium Tree
1009 Complement of Base 10 Integer Python3 59.22% Easy Math
1019 Next Greater Node In Linked List Python3 56.59% Medium Linked List | Stack
1021 Remove Outermost Parentheses Python3 75.74% Easy Stack
1022 Sum of Root To Leaf Binary Numbers Python3 62.36% Easy Tree
1025 Divisor Game Python3 65.18% Easy Math | Dynamic Programming
1026 Maximum Difference Between Node and Ancestor Python3 61.75% Medium Tree | Depth-first Search
1028 Recover a Tree From Preorder Traversal Python3 69.38% Hard Tree | Depth-first Search
1038 Binary Search Tree to Greater Sum Tree Python3 78.17% Medium Binary Search Tree
1041 Robot Bounded In Circle Python3 46.63% Medium Math
1043 Partition Array for Maximum Sum Python3 62.94% Medium Graph
1046 Last Stone Weight Python3 62.43% Easy Heap | Greedy
1049 Last Stone Weight II Python3 41.74% Medium Dynamic Programming
1051 Height Checker Python3 68.23% Easy Array
1071 Greatest Common Divisor of Strings Python3 53.79% Easy String
1072 Flip Columns For Maximum Number of Equal Rows Python3 59.37% Medium Hash Table
1078 Occurrences After Bigram Python3 64.40% Easy Hash Table
1089 Duplicate Zeros Python3 58.36% Easy Array
1104 Path In Zigzag Labelled Binary Tree Python3 70.47% Medium Math | Tree
1106 Parsing A Boolean Expression Python3 57.51% Hard String
1108 Defanging an IP Address Python3 84.84% Easy String
1110 Delete Nodes And Return Forest Python3 64.60% Medium Tree | Depth-first Search
1114 Print in Order Python3 60.62% Easy
1123 Lowest Common Ancestor of Deepest Leaves Python3 65.13% Medium Tree | Depth-first Search
1130 Minimum Cost Tree From Leaf Values Python3 62.92% Medium Dynamic Programming | Stack | Tree
1143 Longest Common Subsequence Python3 57.30% Medium Dynamic Programming
1154 Day of the Year Python3 48.93% Easy Math
1161 Maximum Level Sum of a Binary Tree Python3 70.80% Medium Graph
1170 Compare Strings by Frequency of the Smallest Character Python3 58.33% Easy Array | String
1171 Remove Zero Sum Consecutive Nodes from Linked List Python3 41.55% Medium Linked List
1184 Distance Between Bus Stops Python3 55.79% Easy Array
1185 Day of the Week Python3 64.29% Easy Array
1189 Maximum Number of Balloons Python3 61.41% Easy Hash Table | String
1190 Reverse Substrings Between Each Pair of Parentheses Python3 57.84% Medium Stack
1200 Minimum Absolute Difference Python3 66.14% Easy Array
1202 Smallest String With Swaps Python3 41.60% Medium Array | Union Find
1207 Unique Number of Occurrences Python3 72.44% Easy Hash Table
1209 Remove All Adjacent Duplicates in String II Python3 56.53% Medium Stack
1217 Play with Chips Python3 63.66% Easy Array | Math | Greedy
1219 Path with Maximum Gold Python3 61.59% Medium Backtracking
1221 Split a String in Balanced Strings Python3 78.74% Easy String | Greedy
1227 Airplane Seat Assignment Probability Python3 59.91% Medium Math | Dynamic Programming | Brainteaser
1233 Remove Sub-Folders from the Filesystem Python3 54.45% Medium Array | String
1237 Find Positive Integer Solution for a Given Equation Python3 66.88% Easy Math | Binary Search
1240 Tiling a Rectangle with the Fewest Squares Python3 48.98% Hard Dynamic Programming | Backtracking
1247 Minimum Swaps to Make Strings Equal Python3 57.26% Medium String | Greedy
1248 Count Number of Nice Subarrays Python3 52.86% Medium Two Pointers
1249 Minimum Remove to Make Valid Parentheses Python3 59.35% Medium String | Stack
1250 Check If It Is a Good Array Python3 50.25% Hard Math
1252 Cells with Odd Values in a Matrix Python3 78.68% Easy Array
1254 Number of Closed Islands Python3 59.79% Medium Depth-first Search
1255 Maximum Score Words Formed by Letters Python3 71.02% Hard Bit Manipulation
1260 Shift 2D Grid Python3 58.67% Easy Array
1261 Find Elements in a Contaminated Binary Tree Python3 72.40% Medium Hash Table | Tree
1262 Greatest Sum Divisible by Three Python3 39.16% Medium Dynamic Programming