Let Code Table of Contents Starting from Zero

Overview

It seems that coding tests are conducted overseas in interviews with engineers, and in many cases, the main thing is to implement specific functions and classes according to the theme.

As a countermeasure, it seems that a site called Let Code will take measures.

A site that trains algorithmic power that can withstand coding tests that are often done in the home.

I think it's better to have the algorithm power of a human being, so I'll solve the problem irregularly and write down the method I thought at that time as a memo.

Leetcode

I'm solving it with Python3.

Link Collection

Keeping this article in stock will notify you when new articles are added.

If you want to see only the code, click here See Github.

The number is the link to the Leet Code problem, and the problem link is the link to the commentary article.

I would appreciate it if you could comment on any links that are incorrect.

Day number problem difficulty
1 1389 CreateTargetArrayintheGivenOrder Easy
2 1108 DefanginganIPAddress Easy
3 1313 DecompressRun-LengthEncodedList Easy
4 938 RangeSumofBST Easy
5 1266 MinimumTimeVisitingAllPoints Easy
6 1342 NumberofStepstoReduceaNumbertoZero Easy
7 104 MaximumDepthofBinaryTree Easy
8 1302 DeepestLeavesSum Medium
9 701 InsertintoaBinarySearchTree Medium
10 1431 KidsWiththeGreatestNumberofCandies Easy
11 1315 SumofNodeswithEven-ValuedGrandparent Medium
12 617 MergeTwoBinaryTrees Easy
13 338 CountingBits Medium
14 136 SingleNumber Easy
15 283 MoveZeroes Easy
16 344 ReverseString Easy
17 169 MajorityElement Easy
18 53 MaximumSubarray Easy
19 121 BestTimetoBuyandSellStock Easy
20 134 GasStation Medium
21 448 FindAllNumbersDisappearedinanArray Easy
22 141 LinkedListCycle Easy
23 226 InvertBinaryTree Easy
24 21 MergeTwoSortedLists Easy
25 70 ClimbingStairs Easy
26 94 BinaryTreeInorderTraversal Easy
27 101 SymmetricTree Easy
28 198 HouseRobber Easy
29 46 Permutations Medium
30 234 PalindromeLinkedList Easy
31 581 ShortestUnsortedContinuousSubarray Easy
32 437 PathSumIII Easy
33 1 TwoSum Easy
34 118 Pascal'sTriangle Easy
35 160 IntersectionofTwoLinkedLists Easy
36 155 MinStack Easy
37 105 ConstructBinaryTreefromPreorderandInorderTraversal Medium
38 208 ImplementTrie(PrefixTree) Medium
39 494 TargetSum Medium
40 114 FlattenBinaryTreetoLinkedList Medium
41 394 DecodeString Medium
42 2 AddTwoNumbers Medium
43 5 LongestPalindromicSubstring Medium
44 543 DiameterofBinaryTree Easy
45 1379 FindaCorrespondingNodeofaBinaryTreeinaCloneofThatTree Medium
46 406 QueueReconstructionbyHeight Medium

Recommended Posts

Let Code Table of Contents Starting from Zero
Let Code Day 44 "543. Diameter of Binary Tree" starting from zero
Let Code Day87 Starting from Zero "1512. Number of Good Pairs"
Let Code Day56 Starting from Zero "5453. Running Sum of 1d Array"
Let Code Day92 Starting from Zero "4. Median of Two Sorted Arrays"
Let Code Day 35 "160. Intersection of Two Linked Lists" Starting from Zero
Let Code Day58 Starting from Zero "20. Valid Parentheses"
Let Code Day16 Starting from Zero "344. Reverse String"
Let Code Day49 starting from zero "1323. Maximum 69 Number"
Let Code Day89 "62. Unique Paths" Starting from Zero
Let Code Day 55 "22. Generate Parentheses" Starting from Zero
Let Code Day18 starting from zero "53. Maximum Subarray"
Let Code Day 13 "338. Counting Bits" Starting from Zero
Let Code Day71 Starting from Zero "1496. Path Crossing"
Let Code Day 61 "7. Reverse Integer" starting from zero
Let Code Day 82 "392. Is Subsequence" Starting from Zero
Let Code Day51 Starting from Zero "647. Palindromic Substrings"
Let Code Day 50 "739. Daily Temperatures" Starting from Zero
Let Code Day 15 "283. Move Zeroes" starting from zero
Let Code Day14 starting from zero "136. Single Number"
Let Code Day 11 Starting from Zero "1315. Sum of Nodes with Even-Valued Grandparent"
Let Code Day6 Starting from Zero "1342. Number of Steps to Reduce a Number to Zero"
Let Code Day 43 "5. Longest Palindromic Substring" Starting from Zero
Let Code Day74 starting from zero "12. Integer to Roman"
Let Code Day 42 "2. Add Two Numbers" Starting from Zero
Let Code Day57 Starting from Zero "35. Search Insert Position"
Let Code Day47 Starting from Zero "14. Longest Common Prefix"
Let Code Day78 Starting from Zero "206. Reverse Linked List"
Let Code Day10 Starting from Zero "1431. Kids With the Greatest Number of Candies"
Code wars kata starting from zero
Let Code Day 64 starting from zero "287. Find the Duplicate Number"
Let Code Day 84 starting from zero "142. Linked List Cycle II"
Let Code Day24 Starting from Zero "21. Merge Two Sorted Lists"
Let Code Day12 Starting from Zero "617. Merge Two Binary Trees"
Let Code Day2 Starting from Zero "1108. Defanging an IP Address"
Let Code Day70 Starting from Zero "295. Find Median from Data Stream"
Let Code Day81 "347. Top K Frequent Elements" Starting from Zero
Let Code Day4 starting from scratch "938. Range Sum of BST"
Let Code Day48 Starting from Zero "26. Remove Duplicates from Sorted Array"
Let Code Day 60 starting from zero "1481. Least Number of Unique Integers after K Removals"
Let Code Day67 Starting from Zero "1486. XOR Operation in an Array"
Let Code Day5 starting from zero "1266. Minimum Time Visiting All Points"
Let Code Day83 Starting from Zero "102. Binary Tree Level Order Traversal"
Let Code Day72 Starting from Zero "1498. Number of Subsequences That Satisfy the Given Sum Condition"
Let Code Day45 Starting from Zero "1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree"
Let Code Day 27 "101. Symmetric Tree" starting from scratch
Let Code Day 40 Starting from Zero "114. Flatten Binary Tree to Linked List"
Let Code Day 41 "394. Decode String" starting from scratch
Let Code Day 25 "70. Climbing Stairs" starting from scratch
Let Code Day 91 "153. Find Minimum in Rotated Sorted Array" starting from zero
Let Code Day69 starting from scratch "279. Perfect Squares"
Let Code Day 34 starting from scratch "118. Pascal's Triangle"
Let Code Day85 starting from scratch "6. ZigZag Conversion"
Let Code Day20 starting from scratch "134. Gas Station"
Let Code Day59 starting from zero "1221. Split a String in Balanced Strings"
Let Code Day 88 "139. Word Break" starting from scratch
Let Code Day 28 "198. House Robber" starting from scratch
Let Code Day 39 "494. Target Sum" starting from scratch
Let Code Day 36 "155. Min Stack" starting from scratch
Let Code Day 17 "169. Majority Element" starting from scratch
Let Code Day 33 "1. Two Sum" starting from scratch