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

    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…

    Data Structures & Algorithms

    Combination Sum III | Leetcode 216 | Optimal Solution in Python

    6 Mins Read

    Find all valid combinations of k numbers that sum up to n such that the following conditions are true: Return a list of all possible…

    Previous 1 … 7 8 9 10 11 … 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.