sidequests

        • 1. Two Sum
        • 2. Add Two Numbers
        • 4. Median of Two Sorted Arrays
        • 13. Roman to Integer
        • 14. Longest Common Prefix
        • 15. 3Sum
        • 23. Merge k Sorted Lists
        • 25. Reverse Nodes in k-Group
        • 26. Remove Duplicates from Sorted Array
        • 27. Remove Element
        • 31. Next Permutation
        • 34. Find First and Last Position of Element in Sorted Array
        • 35. Search Insert Position
        • 38. Count and Say
        • 41. First Missing Positive
        • 42 Trapping Rain Water
        • 44. Wildcard Matching
        • 46. Permutations
        • 50. Pow(x, n)
        • 53. Maximum Subarray
        • 55. Jump Game
        • 56. Merge Intervals
        • 61. Rotate List
        • 66. Plus One
        • 73. Set Matrix Zeroes
        • 75. Sort Colors
        • 76. Minimum Window Substring
        • 80. Remove Duplicates from Sorted Array II
        • 86. Partition List
        • 92. Reverse Linked List II
        • 93. Restore IP Addresses
        • 98. Validate BST
        • 101. Symmetric Tree
        • 105. Construct Binary Tree from Preorder and Inorder Traversal
        • 106. Construct Binary Tree from Inorder and Postorder Traversal
        • 114. Flatten Binary Tree
        • 121. Best Time to Buy and Sell Stock
        • 128. Longest Consecutive Sequence
        • 139. Word Break
        • 140. Word Break II
        • 142. Linked List Cycle II
        • 148. Sort List
        • 160. Intersection of Two Linked Lists
        • 169. Majority Element
        • 198. House Robber
        • 206. Reverse Linked List
        • 209. Minimum Size Subarray Sum
        • 215. Kth Largest Element in an Array
        • 226. Invert Binary Tree
        • 229. Majority Element II
        • 230. Kth Smallest Element in a BST
        • 236. Lowest Common Ancestor of a Binary Tree
        • 238. Product of Array Except Self
        • 268. Missing Number
        • 278. First Bad Version
        • 287. Find the Duplicate Number
        • 295. Find Median from Data Stream
        • 297. Serialize and Deserialize Binary Tree
        • 315. Count of Smaller Numbers After Self
        • 316. Remove Duplicate Letters
        • 372. Super Pow
        • 378. Kth Smallest Element in a Sorted Matrix
        • 416. Partition Equal Subset Sum
        • 435. Non-Overlapping Intervals
        • 437. Path Sum III
        • 442. Find All Duplicates in an Array
        • 448. Find All Numbers Disappeared in an Array
        • 452. Minimum Number of Arrows to Burst Balloons
        • 494. Target Sum
        • 523. Continuous Subarray Sum
        • 560. Subarray Sum Equals K
        • 566. Reshape the Matrix
        • 632. Smallest Range Covering Elements from K Lists
        • 645. Set Mismatch
        • 652. Find Duplicate Subtrees
        • 686. Repeated String Match
        • 713. Subarray Product Less Than K
        • 744. Find Smallest Letter Greater Than Target
        • 765. Couples Holding Hands
        • 767. Reorganise Substring
        • 796. Rotate String
        • 832. Flipping an Image
        • 863. All Nodes Distance K in Binary Tree
        • 867. Transpose Matrix
        • 876. Middle of the Linked List
        • 919 · Meeting Rooms II
        • 920. Meeting Rooms
        • 986. Interval List Intersections
        • 989. Add to Array-Form of Integer
        • 1008. Construct Binary Search Tree from Preorder Traversal
        • 1049. Last Stone Weight II
        • 1143. Longest Common Subsequence
        • 1161. Maximum Level Sum of a Binary Tree
        • 1217. Minimum Cost to Move Chips to The Same Position
        • 1295. Find Numbers with Even Number of Digits
        • 1304. Find N Unique Integers Sum up to Zero
        • 1312. Minimum Insertion Steps to Make a String Palindrome
        • 1365. How Many Numbers Are Smaller Than the Current Number
        • 1380. Lucky Numbers in a Matrix
        • 1382. Balance a Binary Search Tree
        • 1389. Create Target Array in the Given Order
        • 1448. Count Good Nodes in Binary Tree
        • 1470. Shuffle the Array
        • 1512. Number of Good Pairs
        • 1574. Shortest Subarray Removed to Make Array Sorted
        • 1721. Swapping Nodes in a Linked List
        • 1749. Maximum Absolute Sum of Any Subarray
        • 1773. Count Items Matching a Rule
        • 1832. Check if the Sentence Is Pangram
        • 1854. Maximum Population Year
        • 1920. Build Array from Permutation
        • 1963. Minimum Number of Swaps to Make the String Balanced
        • 1980. Find Unique Binary String
        • 2027. Minimum Moves to Convert String
        • 2053. Kth Distinct String in an Array
        • 2293. Min Max Game
        • 2294. Partition Array Such That Maximum Difference Is K
        • 6095. Strong Password Checker II
        • 6096. Successful Pairs of Spells and Potions
        • 6121. Query Kth Smallest Trimmed Number
        • 6122. Minimum Deletions to Make Array Divisible
        • Balance Binary Tree
        • Bank Transactions
        • Binary Search Tree
        • Binary Tree
        • Binary Tree to DLL
        • BT Sum at Kth Level
        • Check if Tree is Isomorphic
        • Check whether BST contains Dead End
        • Clone LL with Random Pointer
        • Convert Sorted List to BST
        • Count and Sum of Nodes
        • Count Customers Who Did Not Get A Computer
        • Count of Subsets witth given Sum
        • Count Palindromic Subsequences
        • Count the Reversals
        • Delete Nodes With Greater Value on Right
        • Diagonal Traversal of BT
        • Diameter of a Tree
        • Dynamic Programming
        • Edit Distance
        • FInd String in Grid
        • First Non Repeating Character in Stream
        • First Repeating Element
        • Flatten a BST
        • Flatten a Linked List
        • Flatten Binary Tree to LL
        • GFG Add 1 to Linked List
        • GFG Boundary Traversal of BT
        • GFG Check if Linked List is Palindrome
        • GFG Choclate Distribution Problem
        • GFG Common Elements
        • GFG Count Inversions
        • GFG Detect Loop
        • GFG Factorials of large numbers
        • GFG Intersection of Two Sorted LLs
        • GFG Kth Largest Subarray
        • GFG Length of smallest subarray removed
        • GFG Longest Subarray having Sum K
        • GFG Maximum Product Subarray
        • GFG Median of 2 Sorted Arrays of Same Size
        • GFG Merge k Sorted Arrays
        • GFG Merge Without Extra Space
        • GFG Minimise the Heights
        • GFG Minimum Number of Jumps
        • GFG Minimum swaps and K together
        • GFG Palindromic Array
        • GFG Rearrange array in alternating positive & negative items with O(1) extra space
        • GFG Remove Duplicates
        • GFG Remove Loop
        • GFG Reverse Doubly Linked List
        • GFG Smallest Subarray Sum Smaller Than K
        • GFG Split Circular Linked List into Two Halves
        • GFG Sum of Longest Bloodline
        • GFG Three Way Paritioning
        • GFG Triplet Sum in Array
        • Given n appointments, find all conflicting appointments
        • Height of a Tree
        • Inorder Predecessor and Successor in BST
        • Iterative Traversals of BT
        • Job Sequencing Problem
        • KMP Algo
        • Kth Ancestor
        • Largest BST
        • LCA in BST
        • Leaf at same level
        • Left and Right View
        • Longest Palindrome in String
        • Longest Repeating Subsequence
        • Maxiumum Sum of Non-Adjacent Nodes
        • Merge 2 BSTs
        • Merge 2 Sorted Linked Lists
        • Minimum Characters to be added to front to make string Palindrome
        • Minimum Number of Flips
        • Minimum Number of Merges to make Palindrome
        • MOC DSA Questions
        • Morris Traversals of Binary Tree
        • N meetings in one room
        • Next Permutation
        • Numbers divisible by a or b in range n
        • Parenthesis Checker
        • Permutations of a Given String
        • Police and Thieves
        • Populate Inorder Successor for all Nodes
        • Print all Subsequences of a String
        • Rabin Karp
        • Remove Consecutive Characters
        • Replace every element with the least greater element on its right
        • Reverse Doubly Linked List in Groups of K
        • Reverse Level Order Traversal
        • Reverse LinkedList in Groups of K
        • Shortest Impossible Sequence of Rolls
        • Smallest Distinct Window
        • Smallest sum contiguous subarray
        • Sort Linked List if 0s, 1s and 2s
        • Subtree of Another Tree
        • Sum Tree
        • Swap Kth nodes from ends
        • Top - Bottom View of a Tree
        • Transform String
        • Two Sum in BST
        • Two Sum with 2 BSTs
        • Union and Intersection of Arrays
        • Vertical Traversal of BT
        • Word Wrap Problem
        • Zig Zag Traversal
        • AGI Will Never Be Hostile But Humans Will
        • Functional Type Safety in Kotlin
        • Recursive Type Parameters in Kotlin
        • digital gardens
        • general-specific problems
        • Meaning is Objective
        • on reshaping how we learn
        • pipeline
        • lies
      • A Sneak Peek at Newzle
      • Resume
    home

    ❯

    list of posts

    list of posts

    thoughts : for shorter less fleshed-out posts

    • Oct 09, 2024

      Recursive Type Parameters in Kotlin

      • android
    • Aug 22, 2024

      Functional Type Safety in Kotlin

      • android
    • May 04, 2023

      AGI Will Never Be Hostile But Humans Will

      • ai
      • philosophy

    • GitHub
    • Linkedin
    • Twitter