Close Menu
    Code and Debug
    • Home
    • Our Courses
    • Blog
    • About Us
    • Contact Us
    Facebook X (Twitter) Instagram YouTube WhatsApp
    • Home
    • Our Courses
    • Blog
    • About Us
    • Contact Us
    Facebook Instagram YouTube LinkedIn WhatsApp

    Code and Debug – BlogCode and Debug – Blog

    Code and Debug – BlogCode and Debug – Blog
    Data Structures & Algorithms

    N meetings in one room | Greedy Solution

    5 Mins Read

    The N Meetings in One Room problem is a classic example of the Greedy Algorithm. It focuses on scheduling tasks…

    Data Structures & Algorithms

    Lemonade Change | Leetcode 860 | Greedy Solution

    5 Mins Read

    The Lemonade Change problem is a very popular coding interview question and a classic example of applying the Greedy Algorithm.…

    Data Structures & Algorithms

    Minimum number of Coins | Greedy Algorithm Solution

    4 Mins Read

    The Minimum Number of Coins problem is a classic Greedy Algorithm example. It is frequently asked in coding interviews and…

    Data Structures & Algorithms

    Fractional Knapsack | Solved using Greedy Algorithm

    4 Mins Read

    The Fractional Knapsack problem is one of the most famous problems in the Greedy Algorithm category. It is widely asked…

    Data Structures & Algorithms

    Assign Cookies | Leetcode 455 | Optimal Greedy Solution

    4 Mins Read

    When preparing for coding interviews, one of the common patterns you’ll come across is the Greedy Algorithm. A great example…

    Data Structures & Algorithms

    Maximum Points You Can Obtain from Cards | Leetcode 1423

    4 Mins Read

    The problem “Maximum Points You Can Obtain from Cards” asks you to pick exactly k cards from either the start or the end of the array cardPoints to maximize the total points. The key insight is that if…

    Data Structures & Algorithms

    Number of Substrings Containing All Three Characters | Leetcode 1358 | Optimal Solution using Sliding Window

    6 Mins Read

    The problem “Number of Substrings Containing All Three Characters” asks: given a string s consisting only of the characters ‘a’, ‘b’, and ‘c’, count how many substrings contain at least one of each of…

    Data Structures & Algorithms

    Count Number of Nice Subarrays | Leetcode 1248

    3 Mins Read

    The problem “Count Number of Nice Subarrays” asks: given an integer array nums and an integer k, count the number of contiguous subarrays that contain exactly k odd…

    Data Structures & Algorithms

    Binary Subarrays With Sum | Leetcode 930 | Optimal Prefix/Sliding Window Trick

    4 Mins Read

    The problem “Binary Subarrays With Sum” asks to count the number of contiguous subarrays in a binary array nums whose sum equals a given goal.…

    Data Structures & Algorithms

    Longest Repeating Character Replacement | Leetcode 424

    6 Mins Read

    The problem “Longest Repeating Character Replacement” asks for the length of the longest substring that can be converted into a string of…

    Previous 1 … 3 4 5 6 7 … 25 Next
    Categories
    • Data Structures & Algorithms (240)
      • Beginner (82)
      • Expert (52)
      • Intermediate (106)
    • Uncategorised (1)
    Recent Posts

    Symmetric Tree | Leetcode 101 | Recursive DFS Approach

    2 September 2025

    Binary Tree Right Side View | Leetcode 199 | BFS and DFS Approaches

    2 September 2025

    Bottom View of Binary Tree | BFS with Horizontal Distance Mapping

    2 September 2025

    Top View of Binary Tree | BFS with Horizontal Distance Mapping

    2 September 2025

    Vertical Order Traversal of a Binary Tree | Leetcode 987 | BFS + Sorting Solution

    2 September 2025
    Facebook Instagram YouTube LinkedIn WhatsApp
    © 2025 Code and Debug. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.