Sitemap
A list of all the posts and pages found on the site. For you robots out there is an XML version available for digesting as well.
Pages
Posts
Hacking the Electoral College
A look into the electoral college system in the United States and modeling some interesting scenarios.
leetcodesolutions
1291 Sequential Digits
Published:
Solution to Leetcode 1291
387 First Unique Character in a String
Published:
Solution to Leetcode 387
13 Roman to Integer
Published:
Solution to Leetcode 13
11 Container with Most Water
Published:
Solution to Leetcode 11
1512 Number of Good Pairs
Published:
Solution to Leetcode 1512
896 Monotonic Array
Published:
Solution to Leetcode 896
2265 Count Nodes Equal to Average of Subtree
Published:
Solution to Leetcode 2265
1441 Build an Array with Stack Operations
Published:
Solution to Leetcode 1441
26 Remove Duplicates from Sorted Array
Published:
Solution to Leetcode 26
27 Remove Element
Published:
Solution to Leetcode 27
80 Remove Duplicates from Sorted Array II
Published:
Solution to Leetcode 80
121 Best Time to Buy and Sell Stock
Published:
Solution to Leetcode 121
122 Best Time to Buy and Sell Stock II
Published:
Solution to Leetcode 122
125 Valid Palindrome
Published:
Solution to Leetcode 125
1759 Count Number of Homogenous Substrings
Published:
Solution to Leetcode 1759
58 Length of Last Word
Published:
Solution to Leetcode 58
228 Summary Ranges
Published:
Solution to Leetcode 228
2785 Sort Vowels in a String
Published:
Solution to Leetcode 2785
70 Climbing Stairs
Published:
Solution to Leetcode 70
1980 Find Unique Binary String
Published:
Solution to Leetcode 1980
1887 Reduction Operations to Make the Array Elements Equal
Published:
Solution to Leetcode 1887
1897 Redistribute Characters to Make All Strings Equal
Published:
Solution to Leetcode 1897
2391 Minimum Amount of Time to Collect Garbage
Published:
Solution to Leetcode 2391
219 Contains Duplicate II
Published:
Solution to Leetcode 219
1561 Maximum Number of Coins You Can Get
Published:
Solution to Leetcode 1561
1160 Find Words That Can Be Formed by Characters
Published:
Solution to Leetcode 1160
2264 Largest 3-Same-Digit Number in String
Published:
Solution to Leetcode 2264
1266 Minimum Time Visiting All Points
Published:
Solution to Leetcode 1266
49 Group Anagrams
Published:
Solution to Leetcode 49
1688 Count of Matches in Tournament
Published:
Solution to Leetcode 1688
1 Two Sum
Published:
Solution to Leetcode 1
1704 Determine if String Halves Are Alike
Published:
Solution to Leetcode 1704
1716 Calculate Money in Leetcode Bank
Published:
Solution to Leetcode 1716
217 Contains Duplicate
Published:
Solution to Leetcode 217
1903 Largest Odd Number in String
Published:
Solution to Leetcode 1903
238 Product of Array Except Self
Published:
Solution to Leetcode 238
347 Top K Frequent Elements
Published:
Solution to Leetcode 347
867 Transpose Matrix
Published:
Solution to Leetcode 867
1464 Maximum Product of Two Elements in an Array
Published:
Solution to Leetcode 1464
36 Valid Sudoku
Published:
Solution to Leetcode 36
55 Jump Game
Published:
Solution to Leetcode 55
1413 Minimum Value to Get Positive Step by Step Sum
Published:
Solution to Leetcode 1413
1436 Destination City
Published:
Solution to Leetcode 1436
1913 Maximum Product Difference Between Two Pairs
Published:
Solution to Leetcode 1913
2706 Buy Two Chocolates
Published:
Solution to Leetcode 2706
128 Longest Consecutive Sequence
Published:
Solution to Leetcode 128
1637 Widest Vertical Area Between Two Points Containing No Points
Published:
Solution to Leetcode 1637
1442 Maximum Score After Splitting a String
Published:
Solution to Leetcode 1442
1496 Path Crossing
Published:
Solution to Leetcode 1496
1758 Minimum Changes to Make Alternating Binary String
Published:
Solution to Leetcode 1758
1624 Largest Substring Between Two Equal Characters
Published:
Solution to Leetcode 1624
1929 Concatenation of Array
Published:
Solution to Leetcode 1929
455 Assign Cookies
Published:
Solution to Leetcode 455
206 Reverse Linked List
Published:
Solution to Leetcode 206
2610 Covert an Array Into a 2D Array With Conditions
Published:
Solution to Leetcode 2610
509 Fibonacci Number
Published:
Solution to Leetcode 509
2125 Number of Laser Beams in a Bank
Published:
Solution to Leetcode 2125
2225 Find Players With Zero or One Losses
Published:
Solution to Leetcode 2225
2870 Minimum Number of Operations to Make Array Empty
Published:
Solution to Leetcode 2870
938 Range Sum of BST
Published:
Solution to Leetcode 938
872 Leaf-Similar Trees
Published:
Solution to Leetcode 872
1026 Maximum Difference Between Node and Ancestor
Published:
Solution to Leetcode 1026
1207 Unique Number of Occurrences
Published:
Solution to Leetcode 1207
198 House Robber
Published:
Solution to Leetcode 198
645 Set Mismatch
Published:
Solution to Leetcode 645
739 Daily Temperatures
Published:
Solution to Leetcode 739
771 Jewels and Stones
Published:
Solution to Leetcode 771
791 Custom Sort String
Published:
Solution to Leetcode 791
150 Evaluate Reverse Polish Notation
Published:
Solution to Leetcode 150
189 Rotate Array
Published:
Solution to Leetcode 189
2966 Divide Array into Arrays with Max Difference
Published:
Solution to Leetcode 2966
169 Majority Element
Published:
Solution to Leetcode 169
167 Two Sum II - Input Array is Sorted
Published:
Solution to Leetcode 167
2108 Find First Palindromic String in the Array
Published:
Solution to Leetcode 2108
2149 Rearrange Array Elements by Sign
Published:
Solution to Leetcode 2149
2971 Find Polygon With the Largest Perimeter
Published:
Solution to Leetcode 2971
100 Same Tree
Published:
Solution to Leetcode 100
104 Maximum Depth of Binary Tree
Published:
Solution to Leetcode 104
226 Invert Binary Tree
Published:
Solution to Leetcode 226
268 Missing Number
Published:
Solution to Leetcode 268
997 Find the Town Judge
Published:
Solution to Leetcode 997
2 Add Two Numbers
Published:
Solution to Leetcode 2
21 Merge Two Sorted Lists
Published:
Solution to Leetcode 21
513 Find Bottom Left Tree Value
Published:
Solution to Leetcode 513
561 Array Partition
Published:
Solution to Leetcode 561
1609 Even Odd Tree
Published:
Solution to Leetcode 1609
274 H-Index
Published:
Solution to Leetcode 274
2864 Maximum Odd Binary Number
Published:
Solution to Leetcode 2864
977 Squares of a Sorted Array
Published:
Solution to Leetcode 977
141 Linked List Cycle
Published:
Solution to Leetcode 141
1750 Minimum Length of String After Deleting Similar Ends
Published:
Solution to Leetcode 1750
19 Remove Nth Node From End of List
Published:
Solution to Leetcode 19
704 Binary Search
Published:
Solution to Leetcode 704
1700 Number of Students Unable to Eat Lunch
Published:
Solution to Leetcode 1700
3005 Count Elements With Maximum Frequency
Published:
Solution to Leetcode 3005
876 Middle of the Linked List
Published:
Solution to Leetcode 876
138 Copy List with Random Pointer
Published:
Solution to Leetcode 138
2540 Minimum Common Value
Published:
Solution to Leetcode 2540
349 Intersection of Two Arrays
Published:
Solution to Leetcode 349
108 Convert Sorted Array to Binary Search Tree
Published:
Solution to Leetcode 108
35 Search Insert Position
Published:
Solution to Leetcode 35
1669 Merge In Between Linked Lists
Published:
Solution to Leetcode 1669
713 Subarray Product Less Than K
Published:
Solution to Leetcode 713
1137 N-th Tribonacci Number
Published:
Solution to Leetcode 1160
2073 Time Needed To Buy Tickets
Published:
Solution to Leetcode 2073
1426 Counting Elements
Published:
Solution to Leetcode 1426
1480 Running Sum of 1d Array
Published:
Solution to Leetcode 1480
344 Reverse String
Published:
Solution to Leetcode 344
643 Maximum Average Subarray
Published:
Solution to Leetcode 643
3 Longest Substring Without Repeating Characters
Published:
Solution to Leetcode 3
83 Remove Duplicates from Sorted List
Published:
Solution to Leetcode 83
2016 Maximum Difference Between Increasing Elements
Published:
Solution to Leetcode 2016
2816 Double a Number Represented as a Linked List
Published:
Solution to Leetcode 2816
projects
Handle with Curl
Multithreaded file upload/download with asynchronous file server updating
Rock Paper Scissor Bot
Bot that uses AI to try and beat you in Rock Paper Scissor
Transferfile
Singlethreaded and Multithreaded file transfer