Skip to content

About

LeetCode and Codeforces practice solutions | Python | AI-assisted workflow

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

334 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

DSA Solutions

LeetCode and Codeforces practice solutions, prepared with an AI-assisted workflow.

Archive

137 Python source files: 117 LeetCode and 20 Codeforces. Files are organized by site and problem slug or ID; newer LeetCode files are named NNNN-title.py.

Site Problem Code
codeforces 133A Python source
codeforces 160A Python source
codeforces 110A Python source
codeforces 148A Python source
codeforces 61A Python source
codeforces 478A Python source
codeforces 1350A Python source
codeforces 1352C Python source
codeforces 1339A Python source
codeforces 1348A Python source
codeforces 116A Python source
codeforces 236A Python source
codeforces 281A Python source
codeforces 282A Python source
codeforces 339A Python source
codeforces 41A Python source
codeforces 69A Python source
codeforces 734A Python source
codeforces 96A Python source
codeforces 977A Python source
leetcode best-time-to-buy-and-sell-stock Python source
leetcode contains-duplicate Python source
leetcode maximum-subarray Python source
leetcode binary-search Python source
leetcode search-insert-position Python source
leetcode sqrtx Python source
leetcode subarrays-distinct-element-sum-of-squares-i Python source
leetcode climbing-stairs Python source
leetcode pascals-triangle Python source
leetcode valid-palindrome Python source
leetcode two-sum-ii Python source
leetcode product-of-array-except-self Python source
leetcode longest-consecutive-subsequence Python source
leetcode gas-station Python source
leetcode maximum-product-subarray Python source
leetcode kth-largest-element-in-an-array Python source
leetcode generate-parentheses Python source
leetcode add-digits Python source
leetcode array-partition Python source
leetcode largest-number Python source
leetcode maximum-swap Python source
leetcode merge-intervals Python source
leetcode non-overlapping-intervals Python source
leetcode partition-labels Python source
leetcode plus-one Python source
leetcode remove-k-digits Python source
leetcode sort-colors Python source
leetcode valid-parentheses Python source

LeetCode (numbered, with difficulty)

89 accepted solutions. Each file starts with a comment header (number, title, difficulty, approach, complexity; solve date where recorded). All were submitted and accepted on LeetCode.

# Title Difficulty Code
17 Letter Combinations of a Phone Number Medium Python
21 Merge Two Sorted Lists Easy Python
34 Find First and Last Position of Element in Sorted Array Medium Python
39 Combination Sum Medium Python
40 Combination Sum II Medium Python
46 Permutations Medium Python
47 Permutations II Medium Python
55 Jump Game Medium Python
62 Unique Paths Medium Python
64 Minimum Path Sum Medium Python
74 Search a 2D Matrix Medium Python
77 Combinations Medium Python
78 Subsets Medium Python
79 Word Search Medium Python
81 Search in Rotated Sorted Array II Medium Python
90 Subsets II Medium Python
91 Decode Ways Medium Python
104 Maximum Depth of Binary Tree Easy Python
131 Palindrome Partitioning Medium Python
136 Single Number Easy Python
139 Word Break Medium Python
141 Linked List Cycle Easy Python
148 Sort List Medium Python
150 Evaluate Reverse Polish Notation Medium Python
155 Min Stack Medium Python
162 Find Peak Element Medium Python
198 House Robber Medium Python
200 Number of Islands Medium Python
206 Reverse Linked List Easy Python
213 House Robber II Medium Python
216 Combination Sum III Medium Python
225 Implement Stack using Queues Easy Python
226 Invert Binary Tree Easy Python
232 Implement Queue using Stacks Easy Python
242 Valid Anagram Easy Python
268 Missing Number Easy Python
278 First Bad Version Easy Python
279 Perfect Squares Medium Python
300 Longest Increasing Subsequence Medium Python
322 Coin Change Medium Python
344 Reverse String Easy Python
367 Valid Perfect Square Easy Python
387 First Unique Character in a String Easy Python
392 Is Subsequence Easy Python
410 Split Array Largest Sum Hard Python
416 Partition Equal Subset Sum Medium Python
441 Arranging Coins Easy Python
452 Minimum Number of Arrows to Burst Balloons Medium Python
518 Coin Change II Medium Python
560 Subarray Sum Equals K Medium Python
611 Valid Triangle Number Medium Python
658 Find K Closest Elements Medium Python
668 Kth Smallest Number in Multiplication Table Hard Python
719 Find K-th Smallest Pair Distance Hard Python
739 Daily Temperatures Medium Python
740 Delete and Earn Medium Python
744 Find Smallest Letter Greater Than Target Easy Python
746 Min Cost Climbing Stairs Easy Python
784 Letter Case Permutation Medium Python
786 K-th Smallest Prime Fraction Hard Python
852 Peak Index in a Mountain Array Medium Python
867 Transpose Matrix Easy Python
875 Koko Eating Bananas Medium Python
878 Nth Magical Number Hard Python
912 Sort an Array Medium Python
976 Largest Perimeter Triangle Easy Python
1011 Capacity To Ship Packages Within D Days Medium Python
1051 Height Checker Easy Python
1200 Minimum Absolute Difference Easy Python
1201 Ugly Number III Medium Python
1283 Find the Smallest Divisor Given a Threshold Medium Python
1351 Count Negative Numbers in a Sorted Matrix Easy Python
1356 Sort Integers by The Number of 1 Bits Easy Python
1482 Minimum Number of Days to Make m Bouquets Medium Python
1552 Magnetic Force Between Two Balls Medium Python
1569 Number of Ways to Reorder Array to Get Same BST Hard Python
1608 Special Array With X Elements Greater Than or Equal X Easy Python
1636 Sort Array by Increasing Frequency Easy Python
1870 Minimum Speed to Arrive on Time Medium Python
2064 Minimized Maximum of Products Distributed to Any Store Medium Python
2089 Find Target Indices After Sorting Array Easy Python
2187 Minimum Time to Complete Trips Medium Python
2226 Maximum Candies Allocated to K Children Medium Python
2418 Sort the People Easy Python
2517 Maximum Tastiness of Candy Basket Medium Python
2560 House Robber IV Medium Python
2616 Minimize the Maximum Difference of Pairs Medium Python
2916 Subarrays Distinct Element Sum of Squares II Hard Python
3551 Minimum Swaps to Sort by Digit Sum Medium Python

Only real file changes are committed at their actual commit time. No backdated or empty commits. This is a practice archive, not a claim of unaided problem-solving.

Further solutions will be added as their source files become available.

About

LeetCode and Codeforces practice solutions | Python | AI-assisted workflow

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages