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

    House Robber | Leetcode 198 | Brute Force and Optimal Solutions

    7 Mins Read

    You are a professional robber planning to rob houses along a street. Each house has a certain amount of money…

    Data Structures & Algorithms

    Frog Jump | GFG Practice | Dynamic Programming

    9 Mins Read

    Given an integer array height[] where height[i] represents the height of the i-th stair, a frog starts from the first stair and wants to reach the top. From any…

    Data Structures & Algorithms

    Implement Stack using Queues | Leetcode 225 | Complete Python Code

    6 Mins Read

    Implement a last-in-first-out (LIFO) stack using only two queues. The implemented stack should support all the functions of a normal…

    Data Structures & Algorithms

    Implement Queue Using Array: Complete Guide with Normal and Optimal Solutions

    6 Mins Read

    Problem Statement You need to implement a queue using an array (Python list works as an array here). The queue should support…

    Data Structures & Algorithms

    Implement Stack Using Array | GFG Practice | Complete Guide in Python

    3 Mins Read

    You need to implement a stack using an array (Python list works as an array here). The stack should support two main…

    Data Structures & Algorithms

    Climbing Stairs | Leetcode 70 | Solved using Dynamic Programming

    11 Mins Read

    You are climbing a staircase with n steps. It takes n steps to reach the top. Each time you can either climb 1 or…

    Data Structures & Algorithms

    Nth Fibonacci Number | Introduction to Dynamic Programming

    16 Mins Read

    Given a non-negative integer n, your task is to find the nth Fibonacci number. The Fibonacci sequence is a sequence where the next term is the…

    Data Structures & Algorithms

    Rat in a Maze Problem – I | GFG Practice | 2 different solutions

    15 Mins Read

    Consider a rat placed at position (0, 0) in an n x n square matrix mat[][]. The rat’s goal is to reach the…

    Data Structures & Algorithms

    N-Queens | Leetcode 51 | Brute and Optimal Solution

    13 Mins Read

    The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an…

    Data Structures & Algorithms

    Letter Combinations of a Phone Number | Leetcode 17 | Optimal Solution in Python

    6 Mins Read

    Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any…

    Previous 1 2 3 4 5 … 19 Next
    Categories
    • Data Structures & Algorithms (181)
      • Beginner (68)
      • Expert (42)
      • Intermediate (71)
    • Uncategorised (1)
    Recent Posts

    Minimum sum partition | Solved using Tabulation in Python

    11 August 2025

    Partition Equal Subset Sum | Leetcode 416

    11 August 2025

    Subset Sum Problem | Solved using Dynamic Programming

    11 August 2025

    Cherry Pickup II | Leetcode 1463 | Solved using Dynamic Programming

    11 August 2025

    Trapping Rain Water | Leetcode 42 | Brute, Better and Optimal Solution using Stack

    11 August 2025
    Facebook Instagram YouTube LinkedIn WhatsApp
    © 2025 Code and Debug. All rights reserved.

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