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

    Binary Tree Zigzag Level Order Traversal | Leetcode 103 | BFS with Direction Switching

    3 Mins Read

    You are given the root of a binary tree. You need to return the zigzag level order traversal of its…

    Data Structures & Algorithms

    Same Tree | Leetcode 100 | Recursive Solution Explained in Detail

    3 Mins Read

    You are given two binary trees p and q. You need to check if the two trees are the same.…

    Data Structures & Algorithms

    Binary Tree Maximum Path Sum | Leetcode 124 | Detailed Recursive Solution

    5 Mins Read

    You are given the root of a binary tree. Your task is to find the maximum path sum in the…

    Data Structures & Algorithms

    Balanced Binary Tree | Leetcode 110 | Optimal and Slightly Optimal Solutions

    3 Mins Read

    You are given the root of a binary tree. Your task is to determine whether the tree is height-balanced. A…

    Data Structures & Algorithms

    Best Time to Buy and Sell Stock IV | Leetcode 188 | Recursion to Tabulation Approach

    9 Mins Read

    You are given an integer k and an array prices where prices[i] is the price of a stock on day…

    Data Structures & Algorithms

    Best Time to Buy and Sell Stock III | Leetcode 123 | Dynamic Programming Solution

    9 Mins Read

    You are given an array prices where prices[i] is the price of a stock on day i. You are allowed…

    Data Structures & Algorithms

    Best Time to Buy and Sell Stock II | Leetcode 122 | Recursion to Tabulation

    5 Mins Read

    You are given an array prices where prices[i] is the price of a stock on day i. You may complete…

    Data Structures & Algorithms

    Delete Operation for Two Strings | Leetcode 583

    5 Mins Read

    You are given two strings word1 and word2. In one operation, you can delete exactly one character from either string.…

    Data Structures & Algorithms

    Minimum Insertion Steps to Make a String Palindrome | Leetcode 1312

    5 Mins Read

    Given a string s, return the minimum number of insertions needed to make s a palindrome. You can insert characters…

    Data Structures & Algorithms

    Longest Palindromic Subsequence | Leetcode 516

    5 Mins Read

    Given a string s, find the length of the longest palindromic subsequence in s. A subsequence keeps relative order but…

    Previous 1 2 3 4 5 … 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.