Giter VIP home page Giter VIP logo

lint-code's Introduction

Lint-Code

This is a project to record my code of algorithm questions in LintCode. The basic plan is to write down 2 or 3 questions every day. If you are also interested to challenge the algorithm questions, welcome to follow me in LintCode. Meanwhile, you can apply to join the question group getting stronger ๐Ÿ’ช with other mates in the group.

Table of Contents

The algorithm problem is a key part in job interview for programmers ๐Ÿ’ป, to improve the ability of interview and pass it successfully, and it is necessary to study and practice algorithm questions usually. This project includes algorithm questions I have written down the level from naive to hard. If you are interested in algorithm problems, you could star ๐ŸŒŸ and watch ๐Ÿ‘€ this repository, which will be continuously updated.

๐Ÿ”– Complete Logs

Index Day
Question Title
Level
1 2020.08.07 366.Fibonacci Naive
2 2020.08.07 454.Rectangle Area Naive
3 2020.08.07 463.Sort Integers Naive
4 2020.08.12 466.Count Linked List Nodes Naive
5 2020.08.12 632.Binary Tree Maximum Nodes Naive
6 2020.08.12 8.Rotate String Easy
7 2020.08.13 22.Flatten List Easy
8 2020.08.13 28.Search A 2D Matrix Easy
9 2020.08.13 39.Recover Rotated Sorted Array Easy
10 2020.08.14 53.Reverse Words In a String Easy
11 2020.08.14 55.Compare Strings Easy
12 2020.08.14 60.Search Insert Position Easy
13 2020.08.16 128.Hash Function Easy
14 2020.08.16 141.Sqrt(x) Easy
15 2020.08.18 155.Minimum Depth Of Binary Tree Easy
16 2020.08.18 156.Merge Intervals Easy
17 2020.08.23 167.Add Two Numbers Easy
18 2020.08.23 174.Remove Nth Node From End of List Easy
19 2020.08.25 188.Inset Five Easy
20 2020.08.25 209.First Unique Character in a String Easy
21 2020.08.25 212.Space Replacement Easy
22 2020.08.29 468.Symmetric Binary Elements Easy
23 2020.08.29 296.Unique Array Easy
24 2020.08.29 56.TwoSum Easy
25 2020.08.30 260.Same Diagonal Elements Easy
26 2020.08.30 2.Trailing Zeros Easy
27 2020.08.30 78.Linked List Weighted Sum In Reverse Order Easy
28 2020.08.31 524.Left Pad Easy
29 2020.08.31 764.Calculate Circumference And Area Easy
30 2020.08.31 765.Valid Triangle Easy
31 2020.09.02 766.Leap Year Easy
32 2020.09.02 767.Reverse Array Easy
33 2020.09.02 771.Double Factorial Easy
34 2020.09.03 813.Find Anagram Mappings Easy
35 2020.09.03 835.Hamming Distance Easy
36 2020.09.03 845.Greatest Common Divisor Easy
37 2020.09.08 888.Valid Word Square Easy
38 2020.09.08 914.Flip Game Easy
39 2020.09.08 916.Palindrome Permutation Easy
40 2020.09.12 952.Digital Problem Easy
41 2020.09.12 977.Base7 Easy
42 2020.09.12 987.Binary Number with Alternating Bits Easy
43 2020.09.16 993.Array Partition I Easy
44 2020.09.16 1005.Largest Triangle Area Easy
45 2020.09.16 1011.Number of Lines To Write String Easy
46 2020.09.17 1013.Unique Morse Code Words Easy
47 2020.09.17 1028.Rotated Digits Easy
48 2020.09.17 1038.Jewels And Stones Easy
49 2020.09.22 1042.Toeplitz Matrix Easy
50 2020.09.22 1046.Prime Number of Set Bits in Binary Representation Easy
51 2020.09.22 1054.MinCost Climbing Stairs Easy
52 2020.09.29 1056.Find Smallest Letter Greater Than Target Easy
53 2020.09.29 1062.Flood Fill Easy
54 2020.09.29 1078.Degree of an Array Easy
55 2020.10.08 1094.Second Minimum Node In a Binary Tree Easy
56 2020.10.08 1104.Judge Route Circle Easy
57 2020.10.08 1119.Maximum Product of Three Numbers Easy
58 2020.10.11 1126.Merge Two Binary Trees Easy
59 2020.10.11 1137.Construct String from Binary Tree Easy
60 2020.10.21 1138.Can Place Flowers Easy
61 2020.10.21 1143.Minimum Index Sum of Two Lists Easy
62 2020.10.21 1144.Range Addition II Easy
63 2020.10.22 1148.Longest Harmonious Subsequence Easy
64 2020.10.22 1163.Distribute Candies Easy
65 2020.10.25 1165.Subtree of Another Tree Easy
66 2020.10.25 1172.Binary Tree Tilt Easy
67 2020.10.25 1173.Reverse Words in a String III Easy
68 2020.10.29 1178.Student Attendance Record I Easy
69 2020.10.29 1181.Diameter of Binary Tree Easy
70 2020.11.05 1188.Minimum Absolute Difference in BST Easy
71 2020.11.05 1193.Detect Capital Easy
72 2020.11.05 1199.Perfect Number Easy
73 2020.11.06 1200.Relative Ranks Easy
74 2020.11.06 1204.Keyboard Row Easy
75 2020.11.06 1206.Next Greater Element I Easy
76 2020.11.17 1209.Construct the Rectangle Easy
77 2020.11.17 1214.License Key Formatting Easy
78 2020.11.19 1218.Number Complement Easy
79 2020.11.19 1225.Island Perimeter Easy
80 2020.11.19 1227.Repeated Substring Pattern Easy
81 2020.11.22 1228.Poor Pigs Easy
82 2020.11.22 1231.Minimum Moves to Equal Array Elements Easy
83 2020.11.22 1236.Find All Numbers Disappeared in an Array Easy
84 2020.11.30 1254.Sum of Left Leaves Easy
85 2020.11.30 1266.Find the Difference Easy
86 2020.11.30 1270.Ransom Note Easy
87 2020.12.01 1285.Power of Four Easy
88 2020.12.01 1294.Power of Three Easy
89 2020.12.01 1314.Power of Two Easy
90 2020.12.12 1320.Contains Duplicate Easy
91 2020.12.12 1332.Number of 1 Bits Easy
92 2020.12.12 1347.Factorial Trailing Zeroes Easy
93 2020.12.18 1348.Excel Sheet Column Number Easy
94 2020.12.18 1360.Symmetric Tree Easy
95 2020.12.18 1385.Lucky Number Eight Easy
96 2020.12.24 1394.Goat Latin Easy
97 2020.12.24 1459.Judge the Last Number Easy
98 2020.12.27 1471.Set Operation Easy
99 2020.12.27 1480.Dot Product Easy
100 2020.12.27 1546.Coin Problem Easy
101 2020.12.28 1564.Interval Search Easy
102 2020.12.28 1585.Moving Stones Easy
103 2020.12.30 1615.The Result of Investment Easy
104 2020.12.30 1617.Array Maximum Difference Easy
105 2021.01.04 23.Is Alphanumeric Naive
106 2021.01.04 228.Middle of Linked List Naive
107 2021.01.04 297.Find the Maximum Naive
108 2021.01.05 298.Find Prime Naive
109 2021.01.05 1910.Most Numbers Naive
110 2021.01.07 37.Reverse 3-digit Integer Naive
111 2021.01.07 145.Lowercase to Uppercase Naive
112 2021.01.07 484.Swap Two Integers in Array Naive
113 2021.01.10 9.Fizz Buzz Easy
114 2021.01.10 133.Longest Word Easy
115 2021.01.10 372.Delete Node in a Linked List Easy
116 2021.01.11 97.Maximum Depth of Binary Tree Easy
117 2021.01.11 82.Single Number Easy
118 2021.01.11 175.Invert Binary Tree Easy
119 2021.01.13 375.Clone Binary Tree Easy
120 2021.01.13 157.Unique Characters Easy
121 2021.01.13 14.First Position of Target Easy
122 2021.01.14 445.Cosine Similarity Easy
123 2021.01.14 181.Flip Bits Easy
124 2021.01.16 488.Happy Number Easy
125 2021.01.16 469.Same Tree Easy
126 2021.01.16 46.Majority Element Easy
127 2021.01.19 64.Merge Sorted Array Easy
128 2021.01.19 66.Binary Tree Preorder Traversal Easy
129 2021.01.19 67.Binary Tree Inorder Traversal Easy
130 2021.01.20 68.Binary Tree Postorder Traversal Easy
131 2021.01.20 365.Count 1 in Binary Easy
132 2021.01.22 539.Move Zeroes Easy
133 2021.01.22 491.Palindrome Number Easy
134 2021.01.22 569.Add Digits Easy
135 2021.01.26 422.Length of Last Word Easy
136 2021.01.26 517.Ugly Number Easy
137 2021.01.28 6.Merge Two Sorted Arrays Easy
138 2021.01.28 13.Implement strStr() Easy
139 2021.01.28 50.Product of Array Exclude Itself Easy
140 2021.01.31 80.Median Easy
141 2021.01.31 138.Subarray Sum Easy
142 2021.01.31 451.Swap Nodes in Pairs Easy
143 2021.02.01 1.A+B Problem Easy
144 2021.02.01 69.Binary Tree Level Order Traversal Easy
145 2021.02.03 177.Convert Sorted Array to Binary Search Tree With Minimal Height Easy
146 2021.02.03 158.Valid Anagram Easy
147 2021.02.03 165.Merge Two Sorted Lists Easy
148 2021.02.05 777.Valid Perfect Square Easy
149 2021.02.05 111.Climbing Stairs Easy
150 2021.02.05 173.Insertion Sort List Easy
151 2021.02.06 112.Remove Duplicates from Sorted List Easy
152 2021.02.06 93.Balanced Binary Tree Easy
153 2021.02.07 749.John's backyard garden Easy
154 2021.02.07 457.Classical Binary Search Easy
155 2021.02.07 452.Remove Linked List Elements Easy
156 2021.02.08 35.Reverse Linked List Easy
157 2021.02.08 41.Maximum Subarray Easy
158 2021.02.09 142.O(1) Check Power of 2 Easy
159 2021.02.09 96.Partition List Easy
160 2021.02.10 646.First Position Unique Character Easy
161 2021.02.10 166.Nth to Last Node in List Easy
162 2021.02.18 373.Partition Array by Odd and Even Easy
163 2021.02.18 85.Insert Node in a Binary Search Tree Easy
164 2021.02.18 100.Remove Duplicates from Sorted Array Easy
165 2021.02.19 101.Remove Duplicates from Sorted Array II Easy
166 2021.02.19 661.Convert BST to Greater Tree Easy
167 2021.02.19 172.Remove Element Easy
168 2021.02.23 1033.Minimum Difference Between BST Nodes Easy
169 2021.02.23 1360.Symmetric Tree Medium
170 2021.02.25 283.Max of 3 Numbers Naive
171 2021.02.25 484.Swap Two Integers in Array Naive
172 2021.02.25 1910.Most Numbers Naive
173 2021.02.27 1913.Query Student Enrollment Information Naive
174 2021.02.27 1919.Members Whose Scores Exceed the Group leader Naive
175 2021.02.27 1921.Players Who Never Recharge Naive
176 2021.02.28 1930.Public Rental Housing Information Query Naive
177 2021.02.28 1931.Find Specific Patient Naive
178 2021.02.28 1934.Zhang San's Story I Naive
179 2021.03.01 1938.Query User Email Naive
180 2021.03.01 1945.Club Annual Competition Score Ranking I Naive
181 2021.03.01 25.Print X Naive
182 2021.03.02 838.Subarray Sum Equals K Easy
183 2021.04.21 1901.Squares of a Sorted Array Easy
184 2021.04.21 1503.Give Change Easy

@ Martin Yan
If you have any problem, please feel free to contact author.

MIT ยฉ Martin Yan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.