Skip to main content

19 docs tagged with "leetcode"

View all tags

Balanced Binary Tree Checker

Learn how to implement a balanced binary tree checker in Java, with explanations of the algorithm and time complexity analysis.

Contains Duplicate

Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.

DSA Problem Solution

The "Date to Binary Conversion" problem on LeetCode typically involves converting a given date into its binary representation.

House Robber Algorithm

Solve the House Robber problem using dynamic programming to maximize the amount of money that can be robbed from houses without robbing two adjacent houses.

Left and Right Sum Differences

The Left and Right Sum Differences problem on LeetCode involves finding the absolute difference between the sum of elements to the left and right of each index in an array.

Lemonade Change

The Lemonade Change problem on LeetCode involves determining if a vendor can provide the correct change to every customer using a greedy approach.

Reverse-Bits-Solution

The Reverse Bits problem asks you to reverse the bits of a given 32-bit unsigned integer. Essentially, you need to flip the binary representation of the number so that the least significant bit (LSB) becomes the most significant bit (MSB) and vice versa."

Rotten Oranges Algorithm

Solve the Rotten Oranges problem using Breadth-First Search (BFS) to determine the minimum time required for all fresh oranges to rot.

Sweep Line Algorithm

This document explains the Merge Intervals problem using the Sweep Line Algorithm, including its description, approach, and implementation in C++.

Unique Paths

The Unique Paths problem on LeetCode involves finding the number of possible unique paths for a robot to reach the bottom-right corner of a grid.