© 2026 Hashnode
Problem Statement You are given two arrays fruits and baskets of equal length n. Place fruits into baskets following these rules: Each fruit type must be placed in the leftmost available basket with sufficient capacity Each basket holds only one typ...

Problem Description 1695. Maximum Erasure Value This problem asks us to find the maximum sum of a contiguous subarray where all elements are unique (no duplicates). We need to identify the subarray with unique elements that has the largest sum and ...

Problem Understanding LeetCode 1948-Delete Duplicate Folders in System The goal is to delete all duplicate folder subtrees. Two folders are considered duplicates if they have the same structure and folder names in their subtrees. Solution 1: Standa...

Problem Statement 1233. Remove Sub-Folders from the Filesystem Given an array of folder paths, remove all sub-folders from the filesystem and return the folders after removing all sub-folders in any order. A folder x is a sub-folder of folder y if ...
