मुख्य कंटेंट तक स्किप करें

26 docs tagged with "leetcode"

सारे टैग देखें

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.

Date to Binary

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

Department Highest Salary

The Department Highest Salary problem involves finding the employees who have the highest salary in each department using joins and subqueries.

Department Top Three Salaries

The Department Top Three Salaries problem on LeetCode involves finding the top three unique earners in each department using window functions like DENSE_RANK().

Employees Earning More Than Their Managers

The Employees Earning More Than Their Managers problem on LeetCode involves finding employees whose salary is strictly greater than their manager's salary using a self-join.

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.

Maximum Total Subarray Value I

The Maximum Total Subarray Value I problem involves finding the maximum possible value by choosing a subarray k times 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.

Rising Temperature

The Rising Temperature problem on LeetCode involves finding all dates' Ids with higher temperatures compared to their previous dates (yesterday).

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.

Sum of Subarray Ranges

The Sum of Subarray Ranges problem involves finding the sum of the difference between the maximum and minimum elements of all subarrays using a Monotonic Stack.

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.