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
Accelerator
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
Type
/
to 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 }}
avidLearnerInProgress
/
leetcode-solutions
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
19
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
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
686 Commits
686 Commits
30-days-of-code-july
30-days-of-code-july
30-days-of-code-june
30-days-of-code-june
30-days-of-code-may
30-days-of-code-may
amazon
amazon
01matrix.py
01matrix.py
132_pattern.cpp
132_pattern.cpp
3_sum.cpp
3_sum.cpp
3_sum_closest.py
3_sum_closest.py
3sum_multiplicity.cpp
3sum_multiplicity.cpp
4_sum.cpp
4_sum.cpp
README.md
README.md
add_and_search_word.cpp
add_and_search_word.cpp
add_one_row_to_tree.cpp
add_one_row_to_tree.cpp
add_two_number_ii.cpp
add_two_number_ii.cpp
add_two_numbers.cpp
add_two_numbers.cpp
all_ancestors_of_node_binary_tree.cpp
all_ancestors_of_node_binary_tree.cpp
all_elements_in_bst.cpp
all_elements_in_bst.cpp
allocate_minimum_number_of_pages.cpp
allocate_minimum_number_of_pages.cpp
alphabet_to_integer_mapping.cpp
alphabet_to_integer_mapping.cpp
alternatingCharacters.py
alternatingCharacters.py
arrangeCoins.cpp
arrangeCoins.cpp
array_of_doubled_pairs.cpp
array_of_doubled_pairs.cpp
as_far_from_land_as_possible.cpp
as_far_from_land_as_possible.cpp
atoi.cpp
atoi.cpp
atoi.py
atoi.py
average_of_levels.py
average_of_levels.py
backspace_compare_strings.py
backspace_compare_strings.py
best_time_to_buy_sell_stock_ii.cpp
best_time_to_buy_sell_stock_ii.cpp
best_time_to_buy_sell_stock_iii.cpp
best_time_to_buy_sell_stock_iii.cpp
best_time_to_buy_sell_stock_iv.cpp
best_time_to_buy_sell_stock_iv.cpp
binary_tree_all_paths.cpp
binary_tree_all_paths.cpp
binary_tree_tilt.py
binary_tree_tilt.py
boats_to_rescue.py
boats_to_rescue.py
boats_to_save_people.cpp
boats_to_save_people.cpp
bottom-most_left_val_binary_tree.cpp
bottom-most_left_val_binary_tree.cpp
bottom_view_binary_tree.cpp
bottom_view_binary_tree.cpp
boundaryOfBinaryTree.cpp
boundaryOfBinaryTree.cpp
browser_history.cpp
browser_history.cpp
bst_iterator.cpp
bst_iterator.cpp
bst_to_greater_tree.cpp
bst_to_greater_tree.cpp
buddy_strings.cpp
buddy_strings.cpp
bulls_and_cows.py
bulls_and_cows.py
burst_balloons.cpp
burst_balloons.cpp
buy_sell_with_cooldown_dp.cpp
buy_sell_with_cooldown_dp.cpp
buy_sell_with_transaction_fee.cpp
buy_sell_with_transaction_fee.cpp
can_make_palin_substr.cpp
can_make_palin_substr.cpp
candy_swap.py
candy_swap.py
capacity_to_ship_within_d_days.cpp
capacity_to_ship_within_d_days.cpp
car_pooling.cpp
car_pooling.cpp
celebrity_problem.cpp
celebrity_problem.cpp
cheapest_flights_with_k_stops.cpp
cheapest_flights_with_k_stops.cpp
check_completeness_of_binary_tree.cpp
check_completeness_of_binary_tree.cpp
check_ugly.py
check_ugly.py
cherry_pickup_ii.cpp
cherry_pickup_ii.cpp
cinema_seat_allocation.py
cinema_seat_allocation.py
climbing_stairs.cpp
climbing_stairs.cpp
clone_graph.cpp
clone_graph.cpp
closest_value_in_bst.cpp
closest_value_in_bst.cpp
coinChangeMinimumNumberOfCoins.cpp
coinChangeMinimumNumberOfCoins.cpp
coinChangeNumberOfWays.cpp
coinChangeNumberOfWays.cpp
combination_sum.cpp
combination_sum.cpp
combination_sum3.cpp
combination_sum3.cpp
combination_sum_ii.cpp
combination_sum_ii.cpp
combination_sum_iii.cpp
combination_sum_iii.cpp
combinations.cpp
combinations.cpp
common_characters.py
common_characters.py
compare_version_numbers.cpp
compare_version_numbers.cpp
complement_of_base_10.cpp
complement_of_base_10.cpp
constructStringFromBinaryTree.cpp
constructStringFromBinaryTree.cpp
construct_bst_from_preorder_traversal.cpp
construct_bst_from_preorder_traversal.cpp
construct_tree_from_inorder_levelorder.cpp
construct_tree_from_inorder_levelorder.cpp
construct_tree_from_inorder_postorder.cpp
construct_tree_from_inorder_postorder.cpp
construct_tree_from_inorder_preorder.cpp
construct_tree_from_inorder_preorder.cpp
container_with_max_water.py
container_with_max_water.py
contains_duplicate_ii.cpp
contains_duplicate_ii.cpp
continuous_subarray_sum.cpp
continuous_subarray_sum.cpp
convert_ binary_tree_to_doubly_linked_list.cpp
convert_ binary_tree_to_doubly_linked_list.cpp
convert_binary_tree_to_circular_doubly_linked_list.cpp
convert_binary_tree_to_circular_doubly_linked_list.cpp
convert_binary_tree_to_linked_list.cpp
convert_binary_tree_to_linked_list.cpp
convert_bst_to_greater_tree.cpp
convert_bst_to_greater_tree.cpp
convert_ll_to_binary_number.cpp
convert_ll_to_binary_number.cpp
convert_sorted_array_to_binary_search_tree.cpp
convert_sorted_array_to_binary_search_tree.cpp
copy_list_with_random_ptr.cpp
copy_list_with_random_ptr.cpp
countConsistentStrings.cpp
countConsistentStrings.cpp
count_and_say.cpp
count_and_say.cpp
count_good_meals.cpp
count_good_meals.cpp
count_negative_in_2d.cpp
count_negative_in_2d.cpp
count_number_of_teams.cpp
count_number_of_teams.cpp
count_palindromic_substrings.py
count_palindromic_substrings.py
count_substrings_k_distinct_characters.py
count_substrings_k_distinct_characters.py
counting_bits.cpp
counting_bits.cpp
course_schedule.cpp
course_schedule.cpp
course_schedule_ii.cpp
course_schedule_ii.cpp
course_schedule_iv.cpp
course_schedule_iv.cpp
cousins_binary_tree.cpp
cousins_binary_tree.cpp
daily_temperatures.cpp
daily_temperatures.cpp
decode_str.py
decode_str.py
decode_string.cpp
decode_string.cpp
decode_ways.cpp
decode_ways.cpp
deepest_sum_leaves.cpp
deepest_sum_leaves.cpp
View all files
Repository files navigation
README
More
items
leetcode-solutions
Problem solving on Leetcode
About
Problem solving on Leetcode
Topics
cplusplus
cpp14
cpp17
leetcode-solutions
python
python3
stl-algorithms
Resources
Readme
Activity
Stars
19
stars
Watchers
0
watching
Forks
5
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.