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 }}
asaurav22
/
LeetCode-Problem-Solutions
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
Latest commit
History
186 Commits
186 Commits
Folders and files
Name
Name
Last commit message
Last commit date
01_matrix.cpp
01_matrix.cpp
2sum.cpp
2sum.cpp
3sum.cpp
3sum.cpp
3sum_closest.cpp
3sum_closest.cpp
4sum.cpp
4sum.cpp
README.md
README.md
a_number_after_double_reversal.cpp
a_number_after_double_reversal.cpp
add_digits.cpp
add_digits.cpp
add_two_integers.cpp
add_two_integers.cpp
add_two_numbers.cpp
add_two_numbers.cpp
add_two_numbers_ii.cpp
add_two_numbers_ii.cpp
backspace_string_compare.cpp
backspace_string_compare.cpp
baseball_game.cpp
baseball_game.cpp
best_time_to_buy_and_sell_stock.cpp
best_time_to_buy_and_sell_stock.cpp
binary_search.cpp
binary_search.cpp
binary_tree_inorder_traversal.cpp
binary_tree_inorder_traversal.cpp
binary_tree_postorder_traversal.cpp
binary_tree_postorder_traversal.cpp
binary_tree_preorder_traversal.cpp
binary_tree_preorder_traversal.cpp
bitwise_and_of_numbers_range.cpp
bitwise_and_of_numbers_range.cpp
build_array_from_permutation.cpp
build_array_from_permutation.cpp
check_if_a_number_is_sum_of_power_of_three.cpp
check_if_a_number_is_sum_of_power_of_three.cpp
check_if_matrix_is_X_matrix.cpp
check_if_matrix_is_X_matrix.cpp
check_if_two_strings_are_equi.cpp
check_if_two_strings_are_equi.cpp
climbing_stairs.cpp
climbing_stairs.cpp
combinations.cpp
combinations.cpp
concatenation_of_array.cpp
concatenation_of_array.cpp
container_with_most_water.cpp
container_with_most_water.cpp
contains_duplicate.cpp
contains_duplicate.cpp
convert_a_number_to_hexa.cpp
convert_a_number_to_hexa.cpp
convert_binary_number_in_a_ll_to_integer.cpp
convert_binary_number_in_a_ll_to_integer.cpp
count_equal_and_divisible_pairs.cpp
count_equal_and_divisible_pairs.cpp
count_good_nodes_in_binary_tree.cpp
count_good_nodes_in_binary_tree.cpp
count_hills_and_valleys_in_an_array.cpp
count_hills_and_valleys_in_an_array.cpp
count_integers_with_even_digitsum.cpp
count_integers_with_even_digitsum.cpp
count_number_of_pairs_with_absolute_difference_k.cpp
count_number_of_pairs_with_absolute_difference_k.cpp
count_operations_to_obtain_zerp.cpp
count_operations_to_obtain_zerp.cpp
count_the_number_of_consistent_strings.cpp
count_the_number_of_consistent_strings.cpp
counting_word_with_given_prefix.cpp
counting_word_with_given_prefix.cpp
create_target_order_in_the_given_order.cpp
create_target_order_in_the_given_order.cpp
decompress_run_length_encoded_list.cpp
decompress_run_length_encoded_list.cpp
delete_node_in_ll.cpp
delete_node_in_ll.cpp
design_circular_queue.cpp
design_circular_queue.cpp
encode_and_decode_tinyurl.cpp
encode_and_decode_tinyurl.cpp
fibbonacci_number.cpp
fibbonacci_number.cpp
final_prices_with_special_discount.cpp
final_prices_with_special_discount.cpp
final_value_of_variable_after_performing_operations.cpp
final_value_of_variable_after_performing_operations.cpp
find_first_and_last_position_of_element_in_sorted_array.cpp
find_first_and_last_position_of_element_in_sorted_array.cpp
find_gcd_of_array.cpp
find_gcd_of_array.cpp
find_minimum_in_rotated_sorted_array.cpp
find_minimum_in_rotated_sorted_array.cpp
find_peak_element.cpp
find_peak_element.cpp
find_pivot_index.cpp
find_pivot_index.cpp
find_the_difference.cpp
find_the_difference.cpp
find_the_original_array_of_prefix_array.cpp
find_the_original_array_of_prefix_array.cpp
first_bad_vers.cpp
first_bad_vers.cpp
first_letter_to_appear_twice.cpp
first_letter_to_appear_twice.cpp
first_palindromic_string.cpp
first_palindromic_string.cpp
flood_fill.cpp
flood_fill.cpp
hamming_distance.cpp
hamming_distance.cpp
happy_number.cpp
happy_number.cpp
house_robber.cpp
house_robber.cpp
how_many_numbers_are_smaller_than_current_number.cpp
how_many_numbers_are_smaller_than_current_number.cpp
implement_strStr().cpp
implement_strStr().cpp
insertion_sort_list.cpp
insertion_sort_list.cpp
intersection_of_two_arrays.cpp
intersection_of_two_arrays.cpp
intersection_of_two_arrays_ii.cpp
intersection_of_two_arrays_ii.cpp
interval_list_intersections.cpp
interval_list_intersections.cpp
is_subsequence.cpp
is_subsequence.cpp
isomorphic_strings.cpp
isomorphic_strings.cpp
jewels_and_stones.cpp
jewels_and_stones.cpp
kids_with_greatest_number_of_candies.cpp
kids_with_greatest_number_of_candies.cpp
kth_factor_of_n.cpp
kth_factor_of_n.cpp
kth_smallest_element_in_sorted_array.cpp
kth_smallest_element_in_sorted_array.cpp
length_of_last_word.cpp
length_of_last_word.cpp
letter_case_permutation.cpp
letter_case_permutation.cpp
letter_combinations_of_phone_number.cpp
letter_combinations_of_phone_number.cpp
linked_list_cycle.cpp
linked_list_cycle.cpp
linked_list_cycle_ii.cpp
linked_list_cycle_ii.cpp
longest_consecutivee_sequence.cpp
longest_consecutivee_sequence.cpp
longest_substr_without_rep_char.cpp
longest_substr_without_rep_char.cpp
longest_uncommon_subsequence.cpp
longest_uncommon_subsequence.cpp
max_area_of_island.cpp
max_area_of_island.cpp
maximum_binary_tree.cpp
maximum_binary_tree.cpp
maximum_depth_of_binary_tree.cpp
maximum_depth_of_binary_tree.cpp
maximum_difference_between_increasing_elements.cpp
maximum_difference_between_increasing_elements.cpp
maximum_number_of_Words_found_sentences.cpp
maximum_number_of_Words_found_sentences.cpp
maximum_product_difference_between_two_pairs.cpp
maximum_product_difference_between_two_pairs.cpp
maximum_product_of_two_elements.cpp
maximum_product_of_two_elements.cpp
maximum_subarray.cpp
maximum_subarray.cpp
maximum_twin_sum_of_ll.cpp
maximum_twin_sum_of_ll.cpp
median_of_two_sorted_arrays.cpp
median_of_two_sorted_arrays.cpp
merge_nodes_in_between_zero.cpp
merge_nodes_in_between_zero.cpp
merge_strings_alternately.cpp
merge_strings_alternately.cpp
merge_two_binary_trees.cpp
merge_two_binary_trees.cpp
merge_two_sorted_arrays.cpp
merge_two_sorted_arrays.cpp
merge_two_sorted_ll.cpp
merge_two_sorted_ll.cpp
middle_of_the_linked_list.cpp
middle_of_the_linked_list.cpp
minimum_bit_flips_to_convert_num.cpp
minimum_bit_flips_to_convert_num.cpp
minimum_index_sum_of_two_lists.cpp
minimum_index_sum_of_two_lists.cpp
minimum_no_of_operations_to_move_all_balls_to_each_box.cpp
minimum_no_of_operations_to_move_all_balls_to_each_box.cpp
minimum_number_of_refuelling_stops.cpp
minimum_number_of_refuelling_stops.cpp
View all files
Repository files navigation
README
More
items
LeetCode-Problem-Solutions
Questions on leetcode
About
Questions on leetcode
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.