0273 Integer to English Words
This is a solution to the Integer to English Words problem on LeetCode.
This is a solution to the Integer to English Words problem on LeetCode.
This is a solution to the Find the Index of Permutation problem on LeetCode.
find the number of triplets with given sum .
This is a solution to the Account Balance After Rounded Purchase problem on LeetCode.
This is a solution to the Add Strings problem on LeetCode.
This document covers methods to check if two strings are anagrams of each other in various programming languages.
This document covers methods to calculate the angle between the hour and minute hands of a clock at a given time in various programming languages.
This document provides solutions to whether an array is the subset of another.
This is a solution to the Average Waiting Time problem on LeetCode.
This document covers methods to check if an array is balanced in various programming languages.
This is a solution to the Balanced Binary Tree problem on LeetCode.
This is a solution to the Balanced Tree Check problem.
This document provides solutions to the problem of performing a Breadth First Search (BFS) traversal of a directed graph in various programming languages.
This document provides solutions for sorting a binary array, where elements are either 0 or 1.
This document covers methods to convert a binary number to a decimal number in various programming languages.
This is a solution to the Binary Prefix Divisible By 5 problem on LeetCode.
This document provides solutions to the problem of performing Binary Search in a sorted array.
This document provides solution on how to find substrings of a binary string in various programming languages.
This is a solution to the Binary Tree Level Order Traversal problem on LeetCode.
This is a solution to the Binary Tree Preorder Traversal problem on LeetCode.
This is a solution to the Binary Tree Right Side View problem on LeetCode.
Given a binary tree, return the zigzag level order traversal of its nodes' values. (i.e., from left to right, then right to left for the next level and alternate between).
This document provides a solution to the Binary Trees With Factors problem, where we need to count the number of binary trees that can be formed with a given array of integers such that each node's value is the product of its children's values.
This document provides a solution to the Binary Trees With Factors problem, where we need to count the number of binary trees that can be formed with a given array of integers such that each node's value is the product of its children's values.
This is a solution to the Binary Watch problem on LeetCode.
This is a solution to the Binary-Tree-Postorder-Traversal problem on LeetCode.
This document explains how to convert A to B using bit manipulation.
This document provides a solution where we return the bitwise AND of all numbers in a given range.
This is a solution to the. Brick-Wall problem on LeetCode
This is a solution to the Brightest Position on Street problem on LeetCode.
This document demonstrates how to write a 'Hello, World!' program in C++.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to the Calculate Money in Leetcode Bank problem on LeetCode.
This is a solution to the Candy problem on LeetCode.
This document provides a solution to the Card Flipping Game problem, where we need to find the smallest number that is on the front of a card and not on the back of any card.
This is a solution to the Cheapest Flights Within K Stops problem on LeetCode.
This document provides solutions to whether two arrays are equal or not.
This is a solution to the Balanced Binary Tree problem on LeetCode.
This document covers methods to check if one string is a subsequence of another string in various programming languages.
This document covers methods to check if a string is an isogram (a string with no repeating characters) in various programming languages.
This document provides solutions to this problem implemented in C++, Java, and Python.
This document provides solutions to whether a linked list is circular or not.
This is a solution to the Check If Numbers are Ascending in a Sentence on LeetCode.
This is a solution to the Valid Parentheses Path problem on LeetCode.
This document explores different approaches to solving the climbing stairs problem, including recursion, memoization, tabulation, and space optimization.
This document covers methods to find the closest number to a given target in an array in various programming languages.
This document provides a solution to the combination sum III problem,
This is a solution to the Complement of Base 10 Integer problem on LeetCode.
This is a solution to the Concatenate Array problem on LeetCode.
This document provides solutions for the Construct Binary Search Tree from Preorder Traversal problem.
This is a solution to the Continuous Subarray Sum problem on LeetCode
This is a solution to the Convert a Number to Hexadecimal problem on LeetCode.
This is a solution to the Convert an Array Into a 2D Array With Conditions problem on LeetCode.
This is a solution to the Convert Sorted List to Binary Search Tree problem on LeetCode.
This is a solution to the Copy List with Random Pointer problem on LeetCode.
Solve the problem of calculating the total number of seats reserved for each flight using the booking intervals and prefix sum technique.
This is a solution to the Count Distinct Numbers on Board problem on LeetCode.
This is a solution to the Count Good Meals problem on LeetCode.
This document provides solutions to this problem implemented in C++, Java, and Python.
This document provides solutions for counting the number of leaf nodes in a binary tree.
This document provides solutions to counting the nodes in a linked list.
This is a solution to Count Nodes Equal to Average of Subtree problem on LeetCode.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to Count Number of Texts problem on LeetCode.
This document covers methods to count the number of odd and even integers in an array.
This is a solution to the Count Odd Numbers in an Interval Range problem on LeetCode.
This is a solution to the Count of Sub-Multisets With Bounded Sum problem on LeetCode.
This document provides solutions for finding the maximum total reward using dynamic programming and bit manipulation, implemented in C++, Java, and Python.
This document provides solutions for calculating perfect squares.
This is a solution to the problem of counting subarrays with product less than a given value K.
This is a solution to the Count the Number of Powerful Integers problem on LeetCode.
This is a solution to Count Unguarded Cells in the Grid problem on LeetCode.
This document provides solutions for Count-Alternating-subarrays solution of leetcode questions
This is a solution to the Counting Bits problem on LeetCode.
This document provides solutions to cyclically rotate the array by one.
This is a solution to the Data Stream as Disjoint Intervals problem on LeetCode.
This is a solution to the Defuse the Bomb problem on LeetCode.
This document covers methods to delete alternate nodes from a linked list in various programming languages.
This document provides solutions to the problem of deleting the middle node from a singly linked list in various programming languages.
This document provides a solution to the Delete Node in a Linked List problem, where we need to delete a given node from a singly linked list.
Solve the problem of deleting nodes from a binary tree and returning the forest of remaining trees using depth-first search.
This document provides solutions to the problem of deleting a node from a singly linked list without having a reference to the head pointer in various programming languages.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to the Detect Pattern problem on LeetCode.
Solve the problem of finding the number of ways to tile a 2 x n board using 2 x 1 dominos and tromino shapes.
This document covers methods to insert a node at a given position in a doubly linked list in various programming languages.
This document covers methods to find elements within a specified range in an array in various programming languages.
This is a solution to the Evaluate Bracket Pairs problem on LeetCode.
This document covers methods to find the element that occurs an odd number of times in an array in various programming languages.
This document provides solutions to finding the factorial of a number.
This is a solution to the Faulty Keyboard problem on LeetCode.
This document provides solutions to a problem using the Fenwick Tree (Binary Indexed Tree) data structure, implemented in C++, Java, and Python.
This document covers methods to find all factorial numbers less than or equal to a given number n in various programming languages.
This document provides a solution where we will be returning an array in increasing order , satisfying the condition given
This document provides solutions to this problem implemented in C++, Java, and Python.
This document provides solutions for the Find Common Characters problem on LeetCode.
Given two positive integers n and k, return the kth bit in the nth binary string generated by specific rules.
This document provides solutions to finding the minimum and maximum element in an array.
This document covers methods to find the n/k-th node in a linked list, where n is the length of the list and k is a given integer, in various programming languages.
This document covers methods to find the position of the set bit in a number in various programming languages.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to the Find Root of N-Ary Tree problem on LeetCode.
This document covers methods to calculate total fines based from the cars in various programming languages.
Calculate the m x n grid result, where result[i][j] is the average intensity of the regions to which image[i][j] belongs, rounded down to the nearest integer.
This document provides solutions to this problem implemented in C++, Java, and Python.
This document covers methods to find the smallest and second smallest elements in an array using various programming languages.
Identify the town judge based on trust relationships in a town.
This is a solution to the Find The Town Judge problem on LeetCode.
This document explores different approaches to solving the problem of finding a triplet in an array that sums up to zero, including solutions in JavaScript, TypeScript, Python, Java, and C++.
This is a solution to the. Find All Duplicates in an Array problem on LeetCode
This document covers methods to find the first and last occurrences of a specified element X in an array in various programming languages.
Problem Description
This is a solution to the Flatten Binary Tree To Linked List problem on LeetCode.
This document provides solutions for forming the array by xoring the consecutive elements in various programming languages.
This document covers methods to calculate the Greatest Common Divisor (GCD) of an array of integers in various programming languages.
This is a solution to the Get Maximum in Generated Array problem on LeetCode.
Find the list of videos watched by friends up to a certain level, ordered by their frequencies.
This document explores different approaches to solving the Gray to Binary Equivalent problem, including brute force, bit manipulation, and optimization techniques, in various programming languages.
This document covers methods to replace every element with the greatest element in various programming languages.
This document provides a solution for Happy Number problem on LeetCode.
This document provides a solution to the House Robber II problem, where houses are arranged in a circle.
This is a solution to the How Many Xs problem.
This document provides solutions for checking whether two linked lists are identical or not.
This document provides solutions to finding the intermediate smaller element in an array.
This document provides solutions to implement a queue using an array.
This document covers the implementation of a Queue data structure using a Linked List in various programming languages.
This document provides an implementation of a queue using stacks, supporting push, pop, peek, and empty operations.
This document provides solutions to implement a stack using array.
This document provides solutions to implementing a stack using linked list.
This document provides solutions to check if a string is a substring of another.
This document provides a solution to the Implementation of Trie.
This document provides solutions to the problem of implementing two stacks in a single array using various programming languages.
This is a solution to the Increasing Triplet Subsequence problem on LeetCode.
This document covers methods to find the index of the first occurrence of 1 in a sorted array of 0s and 1s in various programming languages.
This document provides solutions for inorder traversal of a tree.
This is a solution to the Insert Greatest Common Divisors in Linked List problem on LeetCode.
This document provides solutions for inserting a node in the middle of a linked list.
This is a solution to the Insertion sort list problem on LeetCode.
This document provides solutions to this problem implemented in C++, Java, and Python.
This document provides solutions to the problem of finding the intersection of two sorted linked lists in various programming languages.
This is a solution to the Invert Binary Search Tree problem on LeetCode.
This document covers methods for determining the tastiness level of the square which his sister gets in various programming languages.
This document provides solutions for determining if two strings are isomorphic.
This is a solution to Count Unguarded Cells in the Grid problem on LeetCode.
This is a solution to the K Inverse Pairs Array problem on LeetCode.
This is a solution to the Kth Missing Positive Number problem on LeetCode.
This is a solution to theKth Smallest Element in Binary Search Tree problem on LeetCode.
This document provides solutions to this problem implemented in C++, Java, and Python.
This document provides solutions to find the largest element in an array.
Find the last day where it is possible to walk from the top to the bottom of a binary matrix by only walking on land cells.
This document covers methods to find the last index of '1' various programming languages.
This is a solution to the Last Moment Before All Ants Fall Out of a Plank problem on LeetCode.
This document provides solutions for finding the Least Common Multiple (LCM) and Greatest Common Divisor (GCD) of integers.
This document covers methods to determine if a given year is a leap year or not in various programming languages.
This document explores different approaches to solving the lemonade change problem, including an easy C++ solution with a greedy algorithm approach.
This document provides a solution to the Linked List Components problem, where we need to count the number of connected components in a linked list.
This document provides solutions to inserting an element in the linked list.
This document covers methods to determine if the length of a linked list is even or odd in various programming languages.
This is a solution to the Longest Unequal Adjacent Groups Subsequence I problem on LeetCode.
This is a solution to the Longest Unequal Adjacent Groups Subsequence II problem on LeetCode.
This is a solution to the longest word in dictionary through deleting problem on LeetCode.
This is a solution to the longest-valid-parentheses on LeetCode
This document provides a solution to the Majority Element II problem, where we need to find all elements that appear more than ⌊ n/3 ⌋ times.
This is a solution to the Make Sum Divisible by P problem on LeetCode.
This is a solution to the problem of determining the number of matchsticks the first player should pick to guarantee a win in the matchsticks game.
This is a solution to the Matrix Diagonal Sum problem on LeetCode.
This document provides solutions for the Max Consecutive Ones III problem on LeetCode.
This document covers methods to find the maximum and minimum elements in an array using various programming languages.
This is a solution to the Maximize Sum After K Negations problem on LeetCode.
This is a solution to the Maximize the Confusion of an Exam problem on LeetCode.
This is a solution to Maximum Bags With Full Capacity of Rocks problem on LeetCode.
This is a solution to the Maximum Binary String After Change problem on LeetCode.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to Maximum Consecutive Floors Without Special Floors problem on LeetCode.
This document covers methods to find the maximum number of days the room remains illuminated using candles that reduce by 1 unit each day, given an array representing the sizes of the candles.
This is a solution to the Maximum Depth of Binary Tree problem on LeetCode.
This document provides solutions for the Maximum Difference Between Node and Ancestor problem.
This document covers methods to calculate the maximum amount of money that can be collected from a sequence of houses where every house has some amount of money in various programming languages.
This is a solution to the Maximum Non Negative Product in a Matrix problem on LeetCode.
This is a solution to the Maximum Number of Eaten Apples problem on LeetCode.
Given an array nums and an integer target, return the maximum number of non-empty non-overlapping subarrays such that the sum of values in each subarray is equal to target.
This document explores algorithms to find the maximum occurring character in a string.
This document provides solutions to this problem implemented in C++, Java, and Python.
Solve the problem of finding the maximum product of the lengths of two non-intersecting palindromic substrings in a given string.
This is a solution to the Maximum Product of Three Numbers problem on LeetCode.
This is a solution to the Maximum Product Subarray problem on LeetCode.
This document provides solutions for finding the maximum total reward using dynamic programming and bit manipulation, implemented in C++, Java, and Python.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to the Maximum Units on a Truck problem on LeetCode.
This is a solution to Maximum White Tiles Covered by a Carpet problem on LeetCode.
Solve the problem of finding the maximum bitwise XOR of an element with given elements that do not exceed a specified value using trie and bit manipulation.
This document provides a solution to the Median Finder problem, where you need to efficiently find the median of a stream of numbers.
Problem Description
This is a solution to the Merge Strings Alternately problem on LeetCode.
This document covers methods to find the middle of three given numbers in various programming languages.
This document provides solutions to this problem implemented in C++, Java, and Python.
This document provides solutions for Minimize Manhattan Distances using dynamic implemented in C++, Java, and Python.
This document provides solutions to this problem implemented in C++, Java, and Python.
Solve the problem of finding the minimum cost to cut a stick into smaller pieces at specified positions, using dynamic programming.
This is a solution to the Minimum Cost to Split an Array problem on LeetCode.
Find the minimum depth of a binary tree, which is the number of nodes along the shortest path from the root node down to the nearest leaf node.
This document provides solutions to finding the minimum element in a binary search tree.
Solve the problem of finding the minimum number of elements to add to an array to make the sum equal to a given goal while maintaining the property that absolute value of elements does not exceed a specified limit.
This document explores different approaches to solving the problem of finding the minimum index of a character in a string that is also present in another string, including solutions in JavaScript, TypeScript, Python, Java, and C++.
This is a solution to theMinimum Number of Moves to Seat Everyone problem on LeetCode.
This is a solution to the Minimum Operations to Make a Subsequence problem on LeetCode.
This document provides solutions for the Minimum Operations to Make Binary Array Elements Equal to One II problem on LeetCode.
This document provides solutions to this problem implemented in C++, Java, and Python.
This document provides a solution to the Minimum Size Subarray Sum problem
This is a solution to the Minimum Suffix Flips problem on LeetCode.
This is a solution to the Minimum Sum of Mountain Triplets II problem on LeetCode.
Solve the problem of finding the minimum time required for a word to revert to its initial state after performing specific operations.
This document covers methods to find the missing number in an array in various programming languages.
This document provides a solution to the Most Common Word problem, where we need to find the most frequent word in a paragraph that is not in a list of banned words.
This document covers methods to calculate the product of the left and right array sums for a given array in various programming languages.
This document covers methods to find the node at a given index in a linked list in various programming languages.
This page explains the problem of finding non-negative integers without consecutive ones.
This document covers methods to determine if a number is sparse or not in various programming languages.
This is a solution to the Number of Island problem on LeetCode.
Solve the problem of counting the number of words that are subsequences of a given string using various efficient methods.
This is a solution to the Number of Pairs of Interchangeable Rectangles problem on LeetCode.
Solve the problem of finding the number of contiguous non-empty subarrays where the maximum element is within a given range.
This is a solution to the Number of Valid Words problem on LeetCode.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to Number of Ways to Split Array problem on LeetCode.
This document provides a solution to group all the nodes with odd indices together followed by the nodes with even indices given the head of a singly linked list.
This is a solution to the Palindrome Pairs problem on LeetCode.
This is a solution to the Palindromic Substrings problem on LeetCode.
This is a solution to the Pancake Sorting problem on LeetCode.
This document provides solutions for the Partition Array Into Three Parts With Equal Sum problem.
This document provides a solution to the Partition Equal Subset Sum problem.
This is a solution to the Pascal Triangle Row problem.
Generate the first n rows of Pascal's Triangle.
Return the kth row of Pascal's triangle.
This document explores finding the number of paths to reach the origin (0, 0) on a grid.
This document covers methods to print square pattern in various programming languages.
This document covers methods to print a pattern in various programming languages.
This document covers methods to printinverted pyramid in various programming languages.
This document covers methods to print triangle number in various programming languages.
This document provides solutions to the problem of finding peak element in an array.
This document provides solutions for the Perfect Number problem.
Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL.
Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL.
This document provides solutions postorder traversal of a binary tree.
This document provides solutions to the problem of checking whether a non-negative number is a power of 2.
This is a solution to the Power of Four problem on LeetCode.
This is a solution to the Powerful Integers problem on LeetCode.
This document provides solutions to preorder traversal of a binary tree.
This document provides solutions to checking whether a number is prime or not.
This document covers methods to print the first letter of every word in a given string in various programming languages.
This document provides solutions to printing first N Fibonacci number.
This document provides solutions to cyclically rotate the array by one.
This document covers methods to calculate the product of all elements in an array in various programming languages.
This document covers methods to find the product of the maximum element in the first array and the minimum element in the second array in various programming languages.
This is a solution to the Range Sum of Sorted Subarray Sums problem on LeetCode.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to the Rearrange Spaces Between Words problem on LeetCode.
This is a solution to the Recover Binary Search Tree problem on LeetCode.
This document provides a solution to the Reducing Dishes problem, where we need to maximize the sum of the satisfaction of dishes.
This document covers methods to remove a characters from the first string that are present in the second string in various programming languages.
This document covers methods to remove common characters from two strings and concatenate the remaining characters in various programming languages.
This document covers methods to remove consecutive duplicate characters from a string in various programming languages.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to the Remove Duplicates from Sorted List problem on LeetCode.
This document provides solutions for removing all nodes from a linked list that have a specific value.
Solve the problem of determining whether an array can be made strictly increasing by removing exactly one element.
This document provides a solution to the Remove Invalid Parentheses
This document covers methods to find the first repeated character in a string in various programming languages.
This is a solution to the Replace All ?'s to Avoid Consecutive Repeating Characters problem on LeetCode.
This document covers methods to replace all occurrences of the digit 0 with the digit 5 in a given number in various programming languages.
This document covers methods to replace all occurrences of 0 with 5 in a given number in various programming languages.
This is a solution to the Replace Words problem on LeetCode.
This document explores different approaches to reversing a doubly linked list in-place, including solutions in Python, Java, C++, JavaScript, and TypeScript.
This document explores different approaches to reversing a linked list, including solutions in Python, Java, C++, JavaScript, and TypeScript.
This document provides solutions to the problem of reversing a string.
This document provides solutions to reverse an array in groups.
This document provides solutions for determining the Reverse Linkedlist.
This is a solution to the Reverse String problem on LeetCode.
This document provides a solution for the given problem in c++ , java and python languages
This is a solution to the Rotate Array problem on LeetCode.
This is a solution to the Rotate Array problem on LeetCode.
This document provides solutions for rotating an array to the left or right by a specified number of positions.
This is a solution to the Same Tree problem on LeetCode.
Determine if it is possible to assign integers to variable names to satisfy all given equality and inequality equations.
This document covers methods to search for a node in a Binary Search Tree (BST) in various programming languages.
This document provides solutions to the problem for searching an element in the array.
This document provides solutions to finding the position of an element in the array.
This document provides solutions for searching an element in a sorted array.
This is a solution to Sender With Largest Word Count problem on LeetCode.
This document covers methods to set the kth bit of a number to 1 in various programming languages.
This is a solution to the Set Mismatch problem on LeetCode.
This document provides a solution to finding the shortest palindrome by adding characters in front of the given string.
This is a solution to the Shortest Word Distance problem on LeetCode.
This is a solution to the Shuffle String problem on LeetCode.
This is a solution to the Single Number problem on LeetCode.
This is a solution to the Single Number ii problem on LeetCode.
Given an integer array `nums`, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. You can return the answer in any order.
This document covers methods to calculate the size (number of nodes) of a binary tree in various programming languages.
This is a solution to the Smallest Missing Genetic Value in Each Subtree problem on LeetCode.
This document provides solutions to sorting an array.
This document covers methods to sort elements of a matrix in non-decreasing order in various programming languages.
This document provides solutions to this problem implemented in C++, Java, and Python.
This document provides a solution to the Spiral Matrix problem, where the goal is to traverse a matrix in spiral order.
This is a solution to the Split a String Into the Max Number of Unique Substrings problem on LeetCode.
This is a solution to the Split Array Largest Sum problem on LeetCode.
This document provides solutions to print Hello World in various programming languages
This is a solution to the String Compression problem on LeetCode.
This is a solution to the String Without AAA or BBB problem on LeetCode.
This document provides solutions to this problem implemented in C++, Java, and Python.
This is a solution to the Sum of All Odd Length Subarrays problem on LeetCode.
This document covers methods to calculate the sum of the first n terms of a series in various programming languages.
This is a solution to the Sum of Last Leaves problem on LeetCode.
This document covers methods to calculate the sum of all numbers embedded in a string in various programming languages.
This is a solution to the Sum of Square Numbers problem on LeetCode.
This is a solution to the Surrounded Regions problem on LeetCode.
This is a solution to the Symmetric Tree problem on LeetCode.
This document provides solutions for finding the third largest element in an array.
This is a solution to the Third Maximum Number problem on LeetCode.
This document provides a solution to the Total Appeal of a String problem, where we need to calculate the total appeal of all substrings of a given string.
This document provides solutions to this problem implemented in C++, Java, and Python.
Return a distinct array containing all the values that are present in at least two out of the three arrays.
This is a solution to the Two Repeated Elements problem.
This document provides a solution to the Ugly Number problem, where we need to determine if a number is an ugly number.
This document provides a solution to the Ugly Number II problem, where we need to find the nth ugly number.
This document covers methods to find uncommon characters between two strings in various programming languages.
This document provides solutions to the problem of finding the number of elements in the union between two arrays.
Find the number of unique paths from the starting square to the ending square in a grid, walking over every non-obstacle square exactly once.
This is a solution to the Valid Anagram problem on LeetCode.
This is a solution to the Valid Palindrome problem on LeetCode.
This is a solution to the Validate Binary Search Tree problem on LeetCode.
Implement a walking robot simulation on a grid where the robot moves forward, turns, and follows specific instructions.
This is a solution to the Water Bottles problem on LeetCode.
This document provides solutions for Water-bottles-II solution of leetcode questions
This is a solution to the Ways to Split Array Into Three Subarrays problem on LeetCode.
This document covers methods to calculate the number of ways to tile a floor of given dimensions using tiles of given sizes in various programming languages.
This is a solution to the Where Will the Ball Fall problem on LeetCode.
This is a solution to the word ladder II problem on LeetCode.
This is a solution to the word ladder problem on LeetCode.
This document provides a solution to the Word Search II problem, where we need to return all words on the board, given an mXn board of characters and a list of strings words.
Convert the given string into a zigzag pattern with a specified number of rows.