Skip to content

thomaszhang/coding-challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding Challenges

Leetcode Solutions

Total completed: 102/1531

# Title Difficulty C C++ Notes
1 Two Sum Easy C C++ Hash
2 Add Two Numbers Medium C++ Linked List
4 Median of Two Sorted Arrays Hard C++ Sort
6 ZigZag Conversion Medium C++ String
7 Reverse Integer Easy C Math
8 String to Integer (atoi) Medium C++ String
9 Palindrome Number Easy C Math
13 Roman to Integer Easy C String
14 Longest Common Prefix Easy C String
17 Letter Combinations of a Phone Number Medium C++ Combinatorics
19 Remove Nth Node From End of List Medium C++ Linked List
20 Valid Parentheses Easy C++ String
21 Merge Two Sorted Lists Easy C Sort
26 Remove Duplicates from Sorted Array Easy C Array
27 Remove Element Easy C Array
28 Implement strStr() Easy C++ String
35 Search Insert Position Easy C Array
46 Permutations Medium C++ Combinatorics
48 Rotate Image Medium C++ Geometry
53 Maximum Subarray Easy C Array
58 Length of Last Word Easy C String
66 Plus One Easy C Array
69 Square Root Easy C Math
70 Climbing Stairs Easy C Math
83 Remove Duplicates from Sorted List Easy C Linked List
88 Merge Sorted Array Easy C Sort
100 Same Tree Easy C Tree
101 Symmetric Tree Easy C Tree
104 Maximum Depth of Binary Tree Easy C Tree
111 Minimum Depth of Binary Tree Easy C++ Tree
112 Path Sum Easy C++ Tree
118 Pascal's Triangle Easy C C++ Array
119 Pascal's Triangle II Easy C++ Array
120 Triangle Medium C++ Tree
121 Best Time to Buy and Sell Stock Easy C Array
136 Single Number Easy C Bit Manipulation
141 Linked List Cycle Easy C Linked List
151 Reverse Words in a String Medium C++ String
155 Min Stack Easy C++ Stack
169 Majority Element Easy C++ Array
171 Excel Sheet Column Number Easy C++ Math
172 Factorial Trailing Zeroes Easy C++ Math
189 Rotate Array Easy C++ Array
191 Number of 1 Bits Easy C++ Math
202 Happy Number Easy C++ Hash
206 Reverse Linked List Easy C++ Linked List
231 Power of Two Easy C++ Math
237 Delete Node in a Linked List Easy C++ Linked List
242 Valid Anagram Easy C++ Hash
283 Move Zeroes Easy C++ Array
326 Power of Three Easy C++ Math
344 Reverse String Easy C++ String
367 Valid Perfect Square Easy C++ Math
387 First Unique Character in a String Easy C++ String
412 Fizz Buzz Easy C++ String
509 Fibonacci Number Easy C++ Math
589 N-ary Tree Preorder Traversal Easy C++ Tree
709 To Lower Case Easy C++ String
728 Self Dividing Numbers Easy C++ Math
739 Daily Temperatures Medium C Stack
771 Jewels and Stones Easy C++ String
807 Max Increase to Keep City Skyline Medium C++ Array
832 Flipping an Image Easy C++ Array
876 Middle of the Linked List Easy C++ Linked List
912 Sort an Array Medium C++ Sort
938 Range Sum of BST Easy C++ Tree
965 Univalued Binary Tree Easy C++ Tree
1108 Defanging an IP Address Easy C++ String
1114 Print in Order Easy C++ Multithreading
1200 Minimum Absolute Difference Easy C++ Sort
1207 Unique Number of Occurrences Easy C++ Hash
1221 Split a String in Balanced Strings Easy C++ String
1252 Cells with Odd Values in a Matrix Easy C++ Array
1281 Subtract the Product and Sum of Digits of an Integer Easy C++ Math
1290 Convert Binary Number in a Linked List to Integer Easy C++ Math
1295 Find Numbers with Even Number of Digits Easy C++ Math
1299 Replace Elements with Greatest Element on Right Side Easy C++ Array
1302 Deepest Leaves Sum Medium C++ Tree
1304 Find N Unique Integers Sum up to Zero Easy C++ Array
1309 Decrypt String from Alphabet to Integer Mapping Easy C++ String
1313 Decompress Run-Length Encoded List Easy C++ Array
1315 Sum of Nodes with Even-Valued Grandparent Medium C++ Tree
1323 Maximum 69 Number Easy C++ Math
1342 Number of Steps to Reduce a Number to Zero Easy C++ Math
1351 Count Negative Numbers in a Sorted Matrix Easy C++ Search
1365 How Many Numbers Are Smaller Than The Current Number Easy C++ Array
1374 Generate String with Characters That Have Odd Counts Easy C++ String
1380 Lucky Numbers in a Matrix Easy C++ Array
1389 Create Target Array in the Given Order Easy C++ Array
1395 Count Number of Teams Medium C++ Array
1409 Queries on a Permutation with Key Medium C++ Array
1431 Kids with the Greatest Number of Candies Easy C++ Array
1436 Destination City Easy C++ Hash
1450 Number of Students Doing Homework at a Given Time Easy C++ Array
1460 Make Two Arrays Equal By Reversing Subarrays Easy C++ Hash
1464 Maximum Product of Two Elements in an Array Easy C++ Array
1470 Shuffle the Array Easy C++ Array
1476 Subrectangle Queries Medium C++ Array
1480 Running Sum of 1D Array Easy C C++ Array
1486 XOR Operation in an Array Easy C++ Bit Manipulation
1496 Path Crossing Easy C Linked List
1512 Number of Good Pairs Easy C C++ Array

About

My solutions to leetcode problems.

Topics

Resources

Stars

Watchers

Forks