📄️ 0805 Split Array With Same Average
This document provides a solution where we split an array into two non-empty subsets such that both subsets have the same average.
📄️ 806- Number of Lines To Write String
Write the string ss across multiple lines with each line no wider than 100 pixels, counting the total number of lines and the width of the last line, given the widths of each letter.
📄️ 809- Expressive Words
Given a string s and an array of query strings words, return the number of words that can be transformed into s by extending groups of identical characters in the word to have a size of three or more.
📄️ 810- Chalkboard XOR Game
Alice and Bob take turns erasing one number from the chalkboard. If removing a number makes the bitwise XOR of all remaining numbers become 0, the player who made that move loses. If at any player's turn, the XOR of all numbers on the chalkboard is already 0, that player wins. Alice starts first, and both play optimally to avoid losing.
📄️ 811- Subdomain Visit Count
Given an array of count-paired domains, return an array showing the total visit counts for each subdomain and its parent domains.
📄️ 0812- Largest Triangle Area
Solution to leetocde 812
📄️ 0817-Linked-List-Components
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.
📄️ 0819-Most-Common-Word
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.
📄️ 821- Shortest Distance to a Character
Given a string ss and a character cc that appears in ss, return an array where each element at index ii represents the minimum distance from ii to any occurrence of cc in ss.
📄️ 0822-Card-Flipping-Game
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.
📄️ 0823-Binary-Trees-With-Factors
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.
📄️ 825- Friends Of Appropriate Ages
Calculate the total number of friend requests made between persons based on their ages, following specific conditions that determine when a friend request is not sent.
📄️ 826 - Most Profit Assigning Work
Solution to leetocde 826
📄️ 0827-making-a-large-island
This is a solution to making a large island problem on LeetCode.
📄️ 0828-count-unique-characters-of-all-substrings-of-a-given-string
This is a solution to count unique characters of all substrings of a given-string problem on LeetCode.
📄️ 0829-consecutive-numbers-sum
This is a solution to consecutive-numbers-sum problem on LeetCode.
📄️ 0830-positions-of-large-groups
This is a solution to positions-of-large-groups problem on LeetCode.
📄️ 851- Loud and Rich
Return an integer array answer where answer[x] = y indicates that y is the person with the least quietness among all individuals who have equal to or more money than person x.
📄️ 852- Peak Index in a Mountain Array
Find the index of the peak element in a mountain array (an array that increases to a peak and then decreases) in O(log(n)) time complexity.
📄️ 853- Car Fleet
Return the number of distinct groups of cars (car fleets) that reach the target mile together, where a fleet is formed when a faster car catches up to a slower car and they travel at the slower car's speed.
📄️ 854- K-Similar Strings
Determine the minimum number of adjacent letter swaps needed to transform string s1 into string s2, given that s1 and s2 are anagrams.
📄️ 855- Exam Room
Design a class ExamRoom that simulates an exam room where students sit to maximize their distance from others, and includes methods for a student to take the optimal seat and to leave a specified seat.
📄️ 858- Mirror Reflection
Given a square room with mirrored walls and receptors at corners, a laser ray emitted from the southwest corner reflects off mirrors and reaches a receptor based on specified conditions.
📄️ Score After Flipping Matrix
This document provides solutions for the Score After Flipping Matrix problem.
📄️ 863 - All Nodes Distance K in Binary Tree
Solution to leetocde 863
📄️ 865 - Smallest Subtree with all the Deepest Nodes
Solution to leetocde 865
📄️ 867-Transpose-Matrix
Problem Description
📄️ 875 Koko Eating Bananas
This is a solution to the Koko Eating Bananas problem on LeetCode
📄️ 876 - Middle of the Linked List
Solution to leetocde 876
📄️ 888- Fair Candy Swap
Find one pair of candy boxes, one from Alice and one from Bob, to swap so they both end up with the same total number of candies.
📄️ 890- Find and Replace Pattern
Given a list of strings words and a string pattern, return words that match pattern where each unique character in pattern maps uniquely to characters in the word.
📄️ 896-Monotonic-Array
The problem no. is 1351. The Problem is to find monotonic array.
📄️ 899- Orderly Queue
Given a string s and an integer k, return the lexicographically smallest string that can be formed by repeatedly moving one of the first k characters of s to the end of the string.