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 }}
7sakshi7
/
LeetCode-Solutions
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
151 Commits
151 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1009. Complement of Base 10 Integer.cpp
1009. Complement of Base 10 Integer.cpp
101. Symmetric Tree.cpp
101. Symmetric Tree.cpp
1022. Sum of Root To Leaf Binary Numbers.cpp
1022. Sum of Root To Leaf Binary Numbers.cpp
1026. Maximum Difference Between Node and Ancestor.cpp
1026. Maximum Difference Between Node and Ancestor.cpp
103. Binary Tree Zigzag Level Order Traversal.cpp
103. Binary Tree Zigzag Level Order Traversal.cpp
1038. Binary Search Tree to Greater Sum Tree.cpp
1038. Binary Search Tree to Greater Sum Tree.cpp
1041. Robot Bounded In Circle.cpp
1041. Robot Bounded In Circle.cpp
1042. Flower Planting With No Adjacent.cpp
1042. Flower Planting With No Adjacent.cpp
1047. Remove All Adjacent Duplicates In String.cpp
1047. Remove All Adjacent Duplicates In String.cpp
105. Construct Binary Tree from Preorder and Inorder Traversal.cpp
105. Construct Binary Tree from Preorder and Inorder Traversal.cpp
1094. Car Pooling.cpp
1094. Car Pooling.cpp
112. Path Sum.cpp
112. Path Sum.cpp
113. Path Sum II.cpp
113. Path Sum II.cpp
1137. N-th Tribonacci Number.cpp
1137. N-th Tribonacci Number.cpp
114. Flatten Binary Tree to Linked List.cpp
114. Flatten Binary Tree to Linked List.cpp
116. Populating Next Right Pointers in Each Node.cpp
116. Populating Next Right Pointers in Each Node.cpp
118_Pascal's_Triangle.cpp
118_Pascal's_Triangle.cpp
119. Pascal's Triangle II.cpp
119. Pascal's Triangle II.cpp
1200_Minimum_Absolute_Difference.cpp
1200_Minimum_Absolute_Difference.cpp
1207. Unique Number of Occurrences.cpp
1207. Unique Number of Occurrences.cpp
120_Triangle.cpp
120_Triangle.cpp
121. Best Time to Buy and Sell Stock.cpp
121. Best Time to Buy and Sell Stock.cpp
122. Best Time to Buy and Sell Stock II.cpp
122. Best Time to Buy and Sell Stock II.cpp
125. Valid Palindrome.cpp
125. Valid Palindrome.cpp
128. Longest Consecutive Sequence.cpp
128. Longest Consecutive Sequence.cpp
1281_Subtract_the_Product and Sum of_Digits_of_an_Integer.cpp
1281_Subtract_the_Product and Sum of_Digits_of_an_Integer.cpp
1290. Convert Binary Number in a Linked List to Integer.cpp
1290. Convert Binary Number in a Linked List to Integer.cpp
1291. Sequential Digits.cpp
1291. Sequential Digits.cpp
1304. Find N Unique Integers Sum up to Zero.cpp
1304. Find N Unique Integers Sum up to Zero.cpp
1305. All Elements in Two Binary Search Trees.cpp
1305. All Elements in Two Binary Search Trees.cpp
1306. Jump Game III.cpp
1306. Jump Game III.cpp
134. Gas Station.cpp
134. Gas Station.cpp
1342. Number of Steps to Reduce a Number to Zero.cpp
1342. Number of Steps to Reduce a Number to Zero.cpp
138. Copy List with Random Pointer.cpp
138. Copy List with Random Pointer.cpp
143. Reorder List.cpp
143. Reorder List.cpp
1463. Cherry Pickup II.cpp
1463. Cherry Pickup II.cpp
147. Insertion Sort List.cpp
147. Insertion Sort List.cpp
152. Maximum Product Subarray.cpp
152. Maximum Product Subarray.cpp
162. Find Peak Element.cpp
162. Find Peak Element.cpp
165. Compare Version Numbers.cpp
165. Compare Version Numbers.cpp
168. Excel Sheet Column Title.cpp
168. Excel Sheet Column Title.cpp
169. Majority Element.cpp
169. Majority Element.cpp
1725_Number_Of_Rectangles_That_Can_Form_The_Largest_Square.cpp
1725_Number_Of_Rectangles_That_Can_Form_The_Largest_Square.cpp
1752. Check if Array Is Sorted and Rotated.cpp
1752. Check if Array Is Sorted and Rotated.cpp
1779. Find Nearest Point That Has the Same X or Y Coordinate.cpp
1779. Find Nearest Point That Has the Same X or Y Coordinate.cpp
179. Largest Number.cpp
179. Largest Number.cpp
18. 4Sum.cpp
18. 4Sum.cpp
189. Rotate Array.cpp
189. Rotate Array.cpp
190. Reverse Bits.cpp
190. Reverse Bits.cpp
1910. Remove All Occurrences of a Substring.cpp
1910. Remove All Occurrences of a Substring.cpp
191_Number_of_1_Bits.cpp
191_Number_of_1_Bits.cpp
198_House_Robber.cpp
198_House_Robber.cpp
199. Binary Tree Right Side View.cpp
199. Binary Tree Right Side View.cpp
200. Number of Islands.cpp
200. Number of Islands.cpp
203_Remove_Linked_List_Elements.cpp
203_Remove_Linked_List_Elements.cpp
2075. Decode the Slanted Ciphertext.cpp
2075. Decode the Slanted Ciphertext.cpp
209. Minimum Size Subarray Sum.cpp
209. Minimum Size Subarray Sum.cpp
210. Course Schedule II.cpp
210. Course Schedule II.cpp
211. Design Add and Search Words Data Structure.cpp
211. Design Add and Search Words Data Structure.cpp
2114. Maximum Number of Words Found in Sentences.cpp
2114. Maximum Number of Words Found in Sentences.cpp
2129. Capitalize the Title.cpp
2129. Capitalize the Title.cpp
213. House Robber II.cpp
213. House Robber II.cpp
2130. Maximum Twin Sum of a Linked List.cpp
2130. Maximum Twin Sum of a Linked List.cpp
215. Kth Largest Element in an Array.cpp
215. Kth Largest Element in an Array.cpp
2165. Smallest Value of the Rearranged Number.cpp
2165. Smallest Value of the Rearranged Number.cpp
227. Basic Calculator II.cpp
227. Basic Calculator II.cpp
228. Summary Ranges.cpp
228. Summary Ranges.cpp
229. Majority Element II.cpp
229. Majority Element II.cpp
230. Kth Smallest Element in a BST.cpp
230. Kth Smallest Element in a BST.cpp
231_Power_of_Two.cpp
231_Power_of_Two.cpp
234. Palindrome Linked List.cpp
234. Palindrome Linked List.cpp
236. Lowest Common Ancestor of a Binary Tree.cpp
236. Lowest Common Ancestor of a Binary Tree.cpp
25. Reverse Nodes in k-Group.cpp
25. Reverse Nodes in k-Group.cpp
283. Move Zeroes.cpp
283. Move Zeroes.cpp
290. Word Pattern.cpp
290. Word Pattern.cpp
300. Longest Increasing Subsequence.cpp
300. Longest Increasing Subsequence.cpp
304. Range Sum Query 2D - Immutable.cpp
304. Range Sum Query 2D - Immutable.cpp
309. Best Time to Buy and Sell Stock with Cooldown.cpp
309. Best Time to Buy and Sell Stock with Cooldown.cpp
32. Longest Valid Parentheses.cpp
32. Longest Valid Parentheses.cpp
326_Power_of_Three.cpp
326_Power_of_Three.cpp
328. Odd Even Linked List.cpp
328. Odd Even Linked List.cpp
338. Counting Bits.cpp
338. Counting Bits.cpp
342_Power_of_Four.cpp
342_Power_of_Four.cpp
344. Reverse String.cpp
344. Reverse String.cpp
347. Top K Frequent Elements.cpp
347. Top K Frequent Elements.cpp
382. Linked List Random Node.cpp
382. Linked List Random Node.cpp
389. Find the Difference.cpp
389. Find the Difference.cpp
394_Decode_String.cpp
394_Decode_String.cpp
416. Partition Equal Subset Sum.cpp
416. Partition Equal Subset Sum.cpp
42. Trapping Rain Water.cpp
42. Trapping Rain Water.cpp
438. Find All Anagrams in a String.cpp
438. Find All Anagrams in a String.cpp
448_Find_All_Numbers_Disappeared_in_an_Array.cpp
448_Find_All_Numbers_Disappeared_in_an_Array.cpp
45. Jump Game II.cpp
45. Jump Game II.cpp
452. Minimum Number of Arrows to Burst Balloons.cpp
452. Minimum Number of Arrows to Burst Balloons.cpp
457. Circular Array Loop.cpp
457. Circular Array Loop.cpp
461_Hamming_Distance.cpp
461_Hamming_Distance.cpp
476. Number Complement.cpp
476. Number Complement.cpp
498. Diagonal Traverse.cpp
498. Diagonal Traverse.cpp
509. Fibonacci Number.cpp
509. Fibonacci Number.cpp
515. Find Largest Value in Each Tree Row.cpp
515. Find Largest Value in Each Tree Row.cpp
View all files
About
A repository contains solutions of leetcode questions in c++
Topics
good-first-issue
hacktoberfest
hacktoberfest-accepted
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.