Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Ayushluthra2001
LeetCode-upsolving
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
LeetCode-upsolving
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
3
(
3
)
You must be signed in to star a repository
About
Solving LeetCode contest Problems
Topics
cpp
data-structures
data-structures-and-algorithms
leetcode
leetcode-contest
leetcode-solutions
Resources
Readme
Activity
Stars
3
stars
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
221 Commits
221 Commits
Folders and files
Name
Name
Last commit message
Last commit date
100049. Beautiful Towers I.cpp
100049. Beautiful Towers I.cpp
100084. Shortest and Lexicographically Smallest Beautiful String.cpp
100084. Shortest and Lexicographically Smallest Beautiful String.cpp
100085. Minimum Processing Time.cpp
100085. Minimum Processing Time.cpp
100096. Find Indices With Index and Value Difference I.cpp
100096. Find Indices With Index and Value Difference I.cpp
100103. Divisible and Non-divisible Sums Difference.cpp
100103. Divisible and Non-divisible Sums Difference.cpp
100162. Count Elements With Maximum Frequency.cpp
100162. Count Elements With Maximum Frequency.cpp
100165. Find Beautiful Indices in the Given Array I.cpp
100165. Find Beautiful Indices in the Given Array I.cpp
100170. Maximum Area of Longest Diagonal Rectangle.cpp
100170. Maximum Area of Longest Diagonal Rectangle.cpp
100211. Apply Operations to Make String Empty.cpp
100211. Apply Operations to Make String Empty.cpp
100215. Number of Changing Keys.cpp
100215. Number of Changing Keys.cpp
100221. Maximum Number of Operations With the Same Score I.cpp
100221. Maximum Number of Operations With the Same Score I.cpp
100224. Split the Array.cpp
100224. Split the Array.cpp
100225. Find the Largest Area of Square Inside Two Rectangles.cpp
100225. Find the Largest Area of Square Inside Two Rectangles.cpp
100247. Maximize Happiness of Selected Children(TLE).cpp
100247. Maximize Happiness of Selected Children(TLE).cpp
100247. Maximize Happiness of Selected Children(TLE2).cpp
100247. Maximize Happiness of Selected Children(TLE2).cpp
100262. Find the Sum of Encrypted Integers.cpp
100262. Find the Sum of Encrypted Integers.cpp
100263. Harshad Number.cpp
100263. Harshad Number.cpp
1079. 活字印刷.cpp
1079. 活字印刷.cpp
13-4-25 Find Closest Person.cpp
13-4-25 Find Closest Person.cpp
13-4-25 Smallest Palindromic Rearrangement I.cpp
13-4-25 Smallest Palindromic Rearrangement I.cpp
18-12-22.cpp
18-12-22.cpp
20-11-2022-Closest Nodes Queries in a Binary Search Tree.cpp
20-11-2022-Closest Nodes Queries in a Binary Search Tree.cpp
20-11-2022-Number of Unequal Triplets in Array.cpp
20-11-2022-Number of Unequal Triplets in Array.cpp
2085. 统计出现过一次的公共字符串.cpp
2085. 统计出现过一次的公共字符串.cpp
2446. 判断两个事件是否存在冲突.cpp
2446. 判断两个事件是否存在冲突.cpp
2451. 差值数组不同的字符串.cpp
2451. 差值数组不同的字符串.cpp
2529. 正整数和负整数的最大计数.cpp
2529. 正整数和负整数的最大计数.cpp
2609. Find the Longest Balanced Substring of a Binary String.cpp
2609. Find the Longest Balanced Substring of a Binary String.cpp
3090. Maximum Length Substring With Two Occurrences.cpp
3090. Maximum Length Substring With Two Occurrences.cpp
313-Number of Common Factors.cpp
313-Number of Common Factors.cpp
4-12-22 First Problem (circular).cpp
4-12-22 First Problem (circular).cpp
4-12-22 second Problem (equal).cpp
4-12-22 second Problem (equal).cpp
8048. Maximum Odd Binary Number.cpp
8048. Maximum Odd Binary Number.cpp
Add Binary Strings.cpp
Add Binary Strings.cpp
Alternating Digit Sum.cpp
Alternating Digit Sum.cpp
Alternating Groups I
Alternating Groups I
Alternating Groups II.cpp
Alternating Groups II.cpp
Append Characters to String to Make Subsequence.cpp
Append Characters to String to Make Subsequence.cpp
Apple Redistribution into Boxes.cpp
Apple Redistribution into Boxes.cpp
Basic Calculator.cpp
Basic Calculator.cpp
Buy Two Chocolates.cpp
Buy Two Chocolates.cpp
Check Adjacent Digit Differences.cpp
Check Adjacent Digit Differences.cpp
Check Knight Tour Configuration.cpp
Check Knight Tour Configuration.cpp
Check if Grid Satisfies Conditions.cpp
Check if Grid Satisfies Conditions.cpp
Check if The Number is Fascinating.cpp
Check if The Number is Fascinating.cpp
Check if Two Chessboard Squares Have the Same Color.cpp
Check if Two Chessboard Squares Have the Same Color.cpp
Clear Digits.cpp
Clear Digits.cpp
Compare Sums of Bitonic Parts.cpp
Compare Sums of Bitonic Parts.cpp
Concatenate Array With Reverse.cpp
Concatenate Array With Reverse.cpp
Convert Date to Binary.cpp
Convert Date to Binary.cpp
Count Almost Equal Pairs I.cpp
Count Almost Equal Pairs I.cpp
Count Collisions of Monkeys on a Polygon.cpp
Count Collisions of Monkeys on a Polygon.cpp
Count Days Without Meetings.cpp
Count Days Without Meetings.cpp
Count Digit Appearances©leetcode.cpp
Count Digit Appearances©leetcode.cpp
Count Distinct Numbers on Board
Count Distinct Numbers on Board
Count Indices With Opposite Parity.cpp
Count Indices With Opposite Parity.cpp
Count Pairs That Form a Complete Day I.cpp
Count Pairs That Form a Complete Day I.cpp
Count Pairs That Form a Complete Day II.cpp
Count Pairs That Form a Complete Day II.cpp
Count Subarrays With Majority Element I.cpp
Count Subarrays With Majority Element I.cpp
Count Submatrices With Equal Frequency of X and Y.cpp
Count Submatrices With Equal Frequency of X and Y.cpp
Count Substrings Starting and Ending with Given Character.cpp
Count Substrings Starting and Ending with Given Character.cpp
Count Substrings That Satisfy K-Constraint I.cpp
Count Substrings That Satisfy K-Constraint I.cpp
Count Symmetric Integers.cpp
Count Symmetric Integers.cpp
Count Total Number of Colored Cells.cpp
Count Total Number of Colored Cells.cpp
Count Valid Prefixes.cpp
Count Valid Prefixes.cpp
Count Vowel Strings in Ranges.cpp
Count Vowel Strings in Ranges.cpp
Count the Digits That Divide a Number.cpp
Count the Digits That Divide a Number.cpp
Count the Number of Beautiful Subarrays.cpp
Count the Number of Beautiful Subarrays.cpp
Count the Number of Vowel Strings in Range.cpp
Count the Number of Vowel Strings in Range.cpp
Delete Greatest Value in Each Row.cpp
Delete Greatest Value in Each Row.cpp
Delete Nodes From Linked List Present in Array
Delete Nodes From Linked List Present in Array
Design Neighbor Sum Service.cpp
Design Neighbor Sum Service.cpp
Detect Capital.cpp
Detect Capital.cpp
Determine the Winner of a Bowling Game.cpp
Determine the Winner of a Bowling Game.cpp
Difference Between Element Sum and Digit Sum of an Array.cpp
Difference Between Element Sum and Digit Sum of an Array.cpp
Difference of Number of Distinct Values on Diagonals.cpp
Difference of Number of Distinct Values on Diagonals.cpp
Digit Frequency Score.cpp
Digit Frequency Score.cpp
Distinct Prime Factors of Product of Array.cpp
Distinct Prime Factors of Product of Array.cpp
Double a Number Represented as a Linked List(TLE or not suitable for very long input).cpp
Double a Number Represented as a Linked List(TLE or not suitable for very long input).cpp
Double a Number Represented as a Linked List.cpp
Double a Number Represented as a Linked List.cpp
Existence of a Substring in a String and Its Reverse.cpp
Existence of a Substring in a String and Its Reverse.cpp
Final Array State After K Multiplication Operations I.cpp
Final Array State After K Multiplication Operations I.cpp
Find Champion I.cpp
Find Champion I.cpp
Find Champion II.cpp
Find Champion II.cpp
Find Missing Elements.cpp
Find Missing Elements.cpp
Find Occurrences of an Element in an Array.cpp
Find Occurrences of an Element in an Array.cpp
Find The First Player to win K Games in a Row.cpp
Find The First Player to win K Games in a Row.cpp
Find Words Containing Character.cpp
Find Words Containing Character.cpp
Find if Digit Game Can Be Won.cpp
Find if Digit Game Can Be Won.cpp
Find the Count of Numbers Which Are Not Special.cpp
Find the Count of Numbers Which Are Not Special.cpp
Find the Degree of Each Vertex.cpp
Find the Degree of Each Vertex.cpp
Find the Distinct Difference Array.cpp
Find the Distinct Difference Array.cpp
Find the Divisibility Array of a String.cpp
Find the Divisibility Array of a String.cpp
Find the Encrypted String.cpp
Find the Encrypted String.cpp
Find the Integer Added to Array I.cpp
Find the Integer Added to Array I.cpp
Find the Integer Added to Array II.cpp
Find the Integer Added to Array II.cpp
Find the Maximum Divisibility Score.cpp
Find the Maximum Divisibility Score.cpp
Find the Maximum Length of a Good Subsequence I.cpp
Find the Maximum Length of a Good Subsequence I.cpp
Find the Minimum Area to Cover All Ones I.cpp
Find the Minimum Area to Cover All Ones I.cpp
Find the Minimum Possible Sum of a Beautiful Array.cpp
Find the Minimum Possible Sum of a Beautiful Array.cpp
View all files
Repository files navigation
README
More
items
LeetCode-upsolving
About
Solving LeetCode contest Problems
Topics
cpp
data-structures
data-structures-and-algorithms
leetcode
leetcode-contest
leetcode-solutions
Resources
Readme
Activity
Stars
3
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.