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

    Asteroid Collision | Leetcode 735 | Optimal Stack Solution

    3 Mins Read

    We are given an array asteroids of integers representing asteroids in a row. The indices of the asteriod in the array represent…

    Data Structures & Algorithms

    Sum of Subarray Minimums | Leetcode 907 | Stack Optimal Solution

    4 Mins Read

    Given an array of integers arr, find the sum of min(b), where b ranges over every (contiguous) subarray of arr. Since the answer may…

    Data Structures & Algorithms

    0 – 1 Knapsack Problem | 5 DP Solutions in Python

    7 Mins Read

    Given n items, each with a specific weight and value, and a knapsack with a capacity of W, the task is to put the items in…

    Data Structures & Algorithms

    Partitions with Given Difference | Optimal Solution

    4 Mins Read

    Given an array arr[], partition it into two subsets(possibly empty) such that each element must belong to only one subset. Let…

    Data Structures & Algorithms

    Perfect Sum Problem | All 4 DP Solutions in Python

    6 Mins Read

    Given an array arr of non-negative integers and an integer target, the task is to count all subsets of the array whose sum…

    Data Structures & Algorithms

    Minimum sum partition | Solved using Tabulation in Python

    4 Mins Read

    Given an array arr[] containing non-negative integers, the task is to divide it into two sets set1 and set2 such that the absolute difference between their sums is…

    Data Structures & Algorithms

    Partition Equal Subset Sum | Leetcode 416

    3 Mins Read

    This problem is a direct extension of the Subset Sum Problem: instead of checking if any subset sums to a given…

    Data Structures & Algorithms

    Subset Sum Problem | Solved using Dynamic Programming

    6 Mins Read

    Given an array of positive integers arr[] and a value sum, determine if there is a subset of arr[] with sum equal to given sum. Here’s…

    Data Structures & Algorithms

    Cherry Pickup II | Leetcode 1463 | Solved using Dynamic Programming

    9 Mins Read

    You are given a rows x cols matrix grid representing a field of cherries where grid[i][j] represents the number of cherries that you can collect from…

    Data Structures & Algorithms

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

    12 Mins Read

    Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap…

    Previous 1 … 6 7 8 9 10 … 26 Next
    Categories
    • AI & Machine Learning (8)
    • Data Structures & Algorithms (241)
      • Beginner (82)
      • Expert (52)
      • Intermediate (106)
    • Interview Questions (6)
    • Pandas (1)
    • Python (1)
    • Resume (1)
    • SQL (2)
    Recent Posts

    Normalization in DBMS: 1NF, 2NF and 3NF With SQL Examples

    25 November 2026

    100 Machine Learning Interview Questions and Answers (Freshers to Experienced)

    25 November 2026

    K-Means Clustering in Machine Learning: An Interactive Guide (with Python)

    20 November 2026

    Decision Tree in Machine Learning: An Interactive Guide (with Python)

    18 November 2026

    Support Vector Machine (SVM) in Machine Learning: An Interactive Guide

    16 November 2026
    Facebook Instagram YouTube LinkedIn WhatsApp
    © 2025 Code and Debug. All rights reserved.

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