logo
Viki's Corner
Index
Initializing search
    Vikramadtya/study-saathi
    • Home
    • Algorithmic Patterns
    • Design Patterns
    • System Design
    • Notes
    • Code Scratch
    Vikramadtya/study-saathi
    • Home
    • Algorithmic Patterns
      • Sort
        • Macro Syntax Error
        • Counting Sort
        • Insertion Sort
        • Merge Sort
        • Pigeon Hole Sort
        • Quick Sort
        • Selection Sort
      • Binary Search
        • Macro Syntax Error
        • Boyer Moore majority vote algorithm
        • Kadane’s Algorithm
        • Triple Reverse algorithm aka Reversal Algorithm
        • Cycle Detection
        • Macro Syntax Error
        • Sorting
        • Monotonic Stack
        • Macro Syntax Error
        • Monotonic Stack
        • Reversing an Array
        • Stack
        • Tower of Hanoi
        • Deques
        • Priority Queue
        • Queue
        • Binary Heap
        • Binomial Heap
        • Macro Syntax Error
        • Macro Syntax Error
        • Centre of gravity
        • Diameter of Tree
        • Shortest Path
        • Cycle detection
        • Macro Syntax Error
        • Macro Syntax Error
        • Macro Syntax Error
        • Max Consecutive Ones
        • Hoare's Partition Scheme
        • Lomuto partition Scheme
        • Finding If Number is Prime
        • Macro Syntax Error
        • Performing Exponentiation
        • Macro Syntax Error
        • Macro Syntax Error
        • Macro Syntax Error
        • Rotate array by K steps
    • Design Patterns
      • Table of contents
      • Don't Repeat Yourself (DRY) Principle
      • Keep it Simple, Stupid (KISS) Principle
      • You Aren't Gonna Need It (YAGNI) Principle
      • Class Design
      • Design pattern
        • Macro Syntax Error
        • Macro Syntax Error
        • Macro Syntax Error
        • Macro Syntax Error
        • Macro Syntax Error
      • About
      • Vertical vs Horizontal Scaling
      • Database Selection
      • Database Scaling
      • Load Balancing
      • Stateless vs Stateful Systems
        • 🐳 Docker Foundation: Concepts & Architecture
        • Basic Docker Commands
          • Java/JVM architecture
          • Java Object Anatomy: What lives in Memory?
          • The Java Dev Environment That Just Works
          • Understanding the Servlet Ecosystem: From Tomcat to Micronaut
          • DNS
          • HTTP
          • IP Address
          • The OSI Model
          • TCP/IP
          • Examples
          • Resources
          • Logs
        • Arrays
        • Data Structures
        • List
        • Math Operation
        • Binary Search
        • Sorting
        • String Operation
    • Code Scratch
      • LeetCode Solutions
          • Macro Syntax Error
          • 118. Pascal's Triangle
          • 121. Best Time to Buy and Sell Stock
          • 13. Roman to Integer
          • 14. Longest Common Prefix
          • 1431. Kids With the Greatest Number of Candies
          • 1614. Maximum Nesting Depth of the Parentheses
          • 1752. Check if Array Is Sorted and Rotated
          • 1768. Merge Strings Alternately
          • 1903. Largest Odd Number in String
          • 20. Valid Parentheses
          • 205. Isomorphic Strings
          • 242. Valid Anagram
          • 26. Remove Duplicates from Sorted Array
          • 283. Move Zeroes
          • 2965. Find Missing and Repeated Values
          • 345. Reverse Vowels of a String
          • 35. Search Insert Position
          • 605. Can Place Flowers
          • 69. Sqrt(x)
          • 70. Climbing Stairs
          • 704. Binary Search
          • 796. Rotate String
          • 88. Merge Sorted Array
          • 1011. Capacity To Ship Packages Within D Days
          • 11. Container With Most Water
          • 1101. The Earliest Moment When Everyone Become Friends
          • 1283. Find the Smallest Divisor Given a Threshold
          • 138. Copy List with Random Pointer
          • Macro Syntax Error
          • 150. Evaluate Reverse Polish Notation
          • 151. Reverse Words in a String
          • 153. Find Minimum in Rotated Sorted Array
          • 155. Min Stack
          • 162. Find Peak Element
          • Macro Syntax Error
          • 17. Letter Combinations of a Phone Number
          • 19. Remove Nth Node From End of List
          • 198. House Robber
          • 2. Add Two Numbers
          • 207. Course Schedule
          • 2140. Solving Questions With Brainpower
          • 215. Kth Largest Element in an Array
          • 22. Generate Parentheses
          • 227. Basic Calculator II
          • 236. Lowest Common Ancestor of a Binary Tree
          • 237. Delete Node in a Linked List
          • Macro Syntax Error
          • 3. Longest Substring Without Repeating Characters
          • 3169. Count Days Without Meetings
          • 33. Search in Rotated Sorted Array
          • 34. Find First and Last Position of Element in Sorted Array
          • 3481. Apply Substitutions
          • 451. Sort Characters By Frequency
          • 48. Rotate Image
          • 49. Group Anagrams
          • 5. Longest Palindromic Substring
          • 50. Pow(x, n)
          • Macro Syntax Error
          • 54. Spiral Matrix
          • 540. Single Element in a Sorted Array
          • 56. Merge Intervals
          • 560. Subarray Sum Equals K
          • 61. Rotate List
          • 636. Exclusive Time of Functions
          • 73. Set Matrix Zeroes
          • 74. Search a 2D Matrix
          • 75. Sort Colors
          • 78. Subsets
          • 8. String to Integer (atoi)
          • 875. Koko Eating Bananas
          • 189. rotate array approach 1
            • 189. Rotate Array (Approach 2 )
          • 200. number of islands approach 1
            • 200. Number of Islands (Approach 2)
          • 253. meeting rooms ii approach 1
            • Approach Using Priority Queue
          • 121. Best Time to Buy and Sell Stock
          • 122. Best Time to Buy and Sell Stock II
          • 189. Rotate Array
          • 25. Reverse Nodes in k-Group
          • 26. Remove Duplicates from Sorted Array
          • 27. Remove Element
          • 274. H-Index
          • 42. Trapping Rain Water
          • 51. N-Queens
          • 55. Jump Game
          • 80. Remove Duplicates from Sorted Array II
          • 88. Merge Sorted Array
          • Calculate Floor & Ceiling
          • Find Nth Root Of M
          • Flatten A Linked List
          • Implement Lower Bound
          • Implement Upper Bound
          • Number of occurrence
      • TakeUForward Solutions
          • Bubble Sort
          • Insertion Sort
          • Merge Sort
          • Quick Sort
          • Selection Sort
            • Largest Element in an Array
            • Rotate Array Left by K
            • Rotate Array Left by One
            • Linear Search
            • Max Consecutive Ones
            • Second Largest Element in an Array
            • Missing Number
            • Intersection of Two Sorted Arrays (with Duplicates)
            • Move Zeroes
            • Remove Duplicates from Sorted Array
            • Union of Two Sorted Arrays
            • 3Sum: The Sorting + Two-Pointer Pattern
            • 4Sum: The k-Sum Reduction Pattern
            • Maximum Subarray (Kadane's Algorithm)
            • Leaders in an Array
            • Majority Element (Boyer-Moore Voting)
            • Pascal's Triangle: Find a Specific Element
            • Generate Pascal's Triangle (Full)
            • Macro Syntax Error
            • Rearrange Array Elements by Sign
            • Rotate Image (90° Clockwise)
            • Sort Colors (Dutch National Flag Problem)
            • Two Sum: The Complement Pattern
            • Find the repeating and missing number
            • Merge two sorted arrays without extra space
          • Theory
            • Count subarrays with given sum
            • Count subarrays with given xor K
            • Longest Consecutive Sequence in an Array
            • Longest subarray with sum K
          • Theory
            • Lower Bound (The Transition Point Pattern)
            • Binary Search (The Gold Standard)
            • Upper Bound (The "First Greater" Pattern)
            • Find Minimum in Rotated Sorted Array
            • Number of Rotations in Sorted Array
            • Find First and Last Position of Element
            • Floor and Ceil in a Sorted Array
            • Search in Rotated Sorted Array
            • Search in Rotated Sorted Array II (With Duplicates)
            • Search Insert Position
            • Single Element in a Sorted Array
            • Nth Root of M
            • Floor Square Root
            • Smallest Divisor Given a Threshold
            • Koko Eating Bananas (Minimum Rate)
            • Minimum Days to Make M Bouquets
            • Generate Parentheses
            • Power Function: pow(x, n)
            • Subsets (The Power Set)
            • Subsequence Sum Existence
            • Count all subsequences with sum K

    Index

    Problem Solved On
    Implement Upper Bound 2026-04-25
    Flatten A Linked List 2026-04-25
    Find Nth Root Of M 2026-04-25
    Number Of Occurrence 2026-04-25
    Implement Lower Bound 2026-04-25
    Calculate Floor And Ceiling 2026-04-25
    3169. Count Days Without Meetings 2026-04-25
    34. Find First And Last Position Of Element In Sorted Array 2026-04-25
    56. Merge Intervals 2026-04-25
    49. Group Anagrams 2026-04-25
    April 22, 2026
    Copyright © Vikramaditya Singh