Skip to content

Here be my solutions to some tasks from leetcode

Notifications You must be signed in to change notification settings

yk4r2/LeetCodeTasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leet Code Tasks Solved

Task num Task name Leetcode link Solution link Explaination link Topics Difficulty
1 Two Sum: problem solution Array, Hash Table Easy
312 Burst Balloons problem solution Array, Dynamic Programming Hard
1010 Pairs of Songs With Total Durations Divisible by 60 problem solution Array, Hash Table, Counting Medium
997 Find the Town Judge problem solution Array, Hash Table, Graph Easy
518 Coin Change 2 problem solution Array, Dynamic Programming Medium
1009 Complement Of Base 10 Integer problem solution Bit Manipulation Easy
131 Palindrome Partitioning problem solution String, Dynamic Programming, Backtracking Medium
1094 Car Pooling problem solution Array, Sorting, Heap (Priority Queue), Simulation, Prefix Sum Medium
91 Decode Ways problem solution String, Dynamic Programming Medium
382 Linked List Random Node: problem solution Linked List, Math, Reservoir Sampling, Randomized Medium
1463 Cherry Pickup 2: problem solution Array, Dynamic Programming, Matrix Hard
1041 Robot Bounded in Circle: problem solution my explaination Math, String, Simulation Medium
67 Add Binary problem solution Math, String, Bit Manipulation, Simulation Easy
121 Best Time to Buy and Sell Stock problem solution Array, Dynamic Programming Easy
918 Maximum Sum Circular Subarray problem solution Array, Divide and Conquer, Dynamic Programming, Queue, Monotonic Queue Medium
62 Unique Paths problem solution Math, Dynamic Programming, Combinatorics Medium
1022 Sum of Root to Leaf Binary Numbers problem solution Tree, Depth-First Search, Binary Tree Easy
63 Unique Paths 2 problem solution Array, Dynamic Programming, Matrix Medium
701 Insert Into a Binary Search Tree problem solution Tree, Binary Search Tree, Binary Tree Medium
64 Minimum Path Sum problem solution Array, Dynamic Programming, Matrix Medium
931 Minimum Falling Path Sum problem solution Array, Dynamic Programming, Matrix Medium
588 Design In-Memory File System problem solution Hash Table, String, Design, Trie Hard
452 Minimum Number of Arrows to Burst Balloons problem solution Array, Greedy, Sorting Medium
2046 Sort Linked List Already Sorted Using Absolute Values problem solution Linked List, Two Pointers, Sorting Medium
1643 Minimum Deletions to Make String Balanced problem solution String, Dynamic Programming, Stack Medium
2124 Check if All A's Appears Before All B's problem solution String Easy
813 Largest Sum of Averages problem solution Array, Dynamic Programming Medium
8 String to Integer (atoi) problem solution String Medium
1345 Jump Game 4 problem solution Array, Hash Table, Breadth-First Search Hard
849 Maximize Distance to Closest Person problem solution Array Easy
605 Can Place Flowers problem solution Array, Greedy Easy
142 Linked List Cycle 2 problem solution Hash Table, Linked List, Two Pointers Medium
42 Trapping Rain Water problem solution Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack Hard
875 Koko Eating Bananas problem solution Array, Binary Search Medium
134 Gas Station problem solution Array, Greedy Medium
146 LRU Cache problem solution Hash Table, Linked List, Design, Doubly-LInked List Medium
1510 Stone Game 4 problem solution Math, Dynamic Programming, Game Theory Hard
1602 Find Nearest Right Node in Binary Tree problem solution Tree, Breadth-First Search, Binary Tree Medium
1291 Sequential Digits problem solution Enumeration Medium
520 Detect Capital problem solution String Easy
421 Maximum XOR of Two Numbers in Array problem solution Array, Hash Table, Bit Manipulation, Trie Medium
211 Design Add and Search Words Data Structure problem solution String, Depth-First Search, Design, Trie Medium
249 Group Shifted Strings problem solution Array, Hash Table, String Medium
84 Largest Rectangle in Histogram problem solution Array, Stack, Monotonic Stack Hard
189 Rotate Array problem solution Array, Math, Two Pointers Medium
49 Group Anagrams problem solution Hash Table, String, Sorting Medium
1672 Richest Customer Wealth problem solution Array, Matrix Easy
1101 The Easliest Moment When Everyone Become Friends problem solution Array, Union Find Medium
438 Find All Anagrams in a String problem solution Hash Table, String, Sliding Window Medium
525 Contiguous Array problem solution Array, Hash Table, Prefix Sum Medium
929 Unique Email Addresses problem solution Array, Hash Table, String Easy
23 Merge k Sorted Lists problem solution Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort Hard
975 Odd Even Jump problem solution Array, Dynamic Programming, Stack, Monotonic Stack, Ordered Set Hard
80 Remove Duplicates from Sorted Array 2 problem solution Array, Two Pointers Meduim
482 License Key Formatting problem solution String Easy
904 Fruit into Baskets problem solution Array, Hash Table, Sliding Window Medium
3 Longest Substring Without Repeating Characters problem solution Hash Table, String, Sliding Window Medium
389 Find the Difference problem solution Hash Table, String, Bit Manipulation, Sorting Easy
1274 Number of Ships in a Rectangle problem solution Array, Divide and Conquer, Interactive Hard
258 Add Digits problem solution Math, Simulation, Number Theory Easy
532 K-diff Pairs in an Array problem solution Array, Hash Table, Two Pointers, Binary Search, Sorting Medium
560 Subarray Sum Equals K problem solution my explaination Array, Hash Table, Prefix Sum Medium
15 3Sum problem solution Array, Two Pointers, Sorting Medium
567 Permutation in String problem solution Hash Table, Two Pointers, String, Sliding Window Medium