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 }}
Perry1231
LeetCode-Solutions-In-C-
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
LeetCode-Solutions-In-C-
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
LeetCode solution written in c++
Resources
Readme
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
241 Commits
241 Commits
Folders and files
Name
Name
Last commit message
Last commit date
100_same_tree.cpp
100_same_tree.cpp
1013_fibonacci_number.cpp
1013_fibonacci_number.cpp
1018_largest_perimeter_triangle.cpp
1018_largest_perimeter_triangle.cpp
1019_squares_of_a_sorted_array.cpp
1019_squares_of_a_sorted_array.cpp
1047_maximize_sum_of_array_after_k_negations.cpp
1047_maximize_sum_of_array_after_k_negations.cpp
104_maximum_depth_of_binary_tree.cpp
104_maximum_depth_of_binary_tree.cpp
1078_remove_outermost_parentheses.cpp
1078_remove_outermost_parentheses.cpp
112_path_sum.cpp
112_path_sum.cpp
1137_height_checker.cpp
1137_height_checker.cpp
1195_distribute_candies_to_people.cpp
1195_distribute_candies_to_people.cpp
1210_mean_of_array_after_removing_some_elements.cpp
1210_mean_of_array_after_removing_some_elements.cpp
1217_relative_sort_array.cpp
1217_relative_sort_array.cpp
121_best_time_to_buy_and_sell_stock.cpp
121_best_time_to_buy_and_sell_stock.cpp
1236_n_th_tribonacci_number.cpp
1236_n_th_tribonacci_number.cpp
1256_rank_transform_of_an_array.cpp
1256_rank_transform_of_an_array.cpp
125_valid_palindrome.cpp
125_valid_palindrome.cpp
12_integer_to_roman.cpp
12_integer_to_roman.cpp
1306_minimum_absolute_difference.cpp
1306_minimum_absolute_difference.cpp
1349_check_if_it_is_a_straight_line.cpp
1349_check_if_it_is_a_straight_line.cpp
136_single_number.cpp
136_single_number.cpp
13_roman_to_integer.cpp
13_roman_to_integer.cpp
141_linked_list_cycle.cpp
141_linked_list_cycle.cpp
1448_maximum_69_number.cpp
1448_maximum_69_number.cpp
1458_sort_integers_by_the_number_of_1_bits.cpp
1458_sort_integers_by_the_number_of_1_bits.cpp
1463_the_k_weakest_rows_in_a_matrix.cpp
1463_the_k_weakest_rows_in_a_matrix.cpp
1468_check_if_n_and_its_double_exist.cpp
1468_check_if_n_and_its_double_exist.cpp
1476_count_negative_numbers_in_a_sorted_matrix.cpp
1476_count_negative_numbers_in_a_sorted_matrix.cpp
1482_how_many_numbers_are_smaller_than_the_current_number.cpp
1482_how_many_numbers_are_smaller_than_the_current_number.cpp
1486_find_the_distance_value_between_two_arrays.cpp
1486_find_the_distance_value_between_two_arrays.cpp
148_sort_list.cpp
148_sort_list.cpp
14_longest_common_prefix.cpp
14_longest_common_prefix.cpp
1528_kids_with_the_greatest_number_of_candies.cpp
1528_kids_with_the_greatest_number_of_candies.cpp
153_find_minimum_in_rotated_sorted_array.cpp
153_find_minimum_in_rotated_sorted_array.cpp
1547_destination_city.cpp
1547_destination_city.cpp
1556_make_two_arrays_equal_by_reversing_subarrays.cpp
1556_make_two_arrays_equal_by_reversing_subarrays.cpp
1566_check_if_a_word_occurs_as_a_prefix_of_any_word_in_a_sentence.cpp
1566_check_if_a_word_occurs_as_a_prefix_of_any_word_in_a_sentence.cpp
1574_maximum_product_of_two_elements_in_an_array.cpp
1574_maximum_product_of_two_elements_in_an_array.cpp
1584_average_salary_excluding_the_minimum_and_maximum_salary.cpp
1584_average_salary_excluding_the_minimum_and_maximum_salary.cpp
15_3sum.cpp
15_3sum.cpp
160_intersection_of_two_linked_lists.cpp
160_intersection_of_two_linked_lists.cpp
1626_can_make_arithmetic_progression_from_sequence.cpp
1626_can_make_arithmetic_progression_from_sequence.cpp
162_find_peak_element.cpp
162_find_peak_element.cpp
1630_count_odd_numbers_in_an_interval_range.cpp
1630_count_odd_numbers_in_an_interval_range.cpp
1646_kth_missing_positive_number.cpp
1646_kth_missing_positive_number.cpp
164_maximum_gap.cpp
164_maximum_gap.cpp
167_two_sum_ii___input_array_is_sorted.cpp
167_two_sum_ii___input_array_is_sorted.cpp
169_majority_element.cpp
169_majority_element.cpp
16_3sum_closest.cpp
16_3sum_closest.cpp
171_excel_sheet_column_number.cpp
171_excel_sheet_column_number.cpp
1730_special_array_with_x_elements_greater_than_or_equal_x.cpp
1730_special_array_with_x_elements_greater_than_or_equal_x.cpp
1737_maximum_nesting_depth_of_the_parentheses.cpp
1737_maximum_nesting_depth_of_the_parentheses.cpp
1741_sort_array_by_increasing_frequency.cpp
1741_sort_array_by_increasing_frequency.cpp
1742_widest_vertical_area_between_two_points_containing_no_points.cpp
1742_widest_vertical_area_between_two_points_containing_no_points.cpp
1755_defuse_the_bomb.cpp
1755_defuse_the_bomb.cpp
1776_minimum_operations_to_reduce_x_to_zero.cpp
1776_minimum_operations_to_reduce_x_to_zero.cpp
179_largest_number.cpp
179_largest_number.cpp
1829_maximum_units_on_a_truck.cpp
1829_maximum_units_on_a_truck.cpp
18_4sum.cpp
18_4sum.cpp
191_number_of_1_bits.cpp
191_number_of_1_bits.cpp
1961_maximum_ice_cream_bars.cpp
1961_maximum_ice_cream_bars.cpp
1970_sorting_the_sentence.cpp
1970_sorting_the_sentence.cpp
1972_rotating_the_box.cpp
1972_rotating_the_box.cpp
1_two_sum.cpp
1_two_sum.cpp
202_happy_number.cpp
202_happy_number.cpp
203_remove_linked_list_elements.cpp
203_remove_linked_list_elements.cpp
2042_maximum_product_difference_between_two_pairs.cpp
2042_maximum_product_difference_between_two_pairs.cpp
206_reverse_linked_list.cpp
206_reverse_linked_list.cpp
2083_three_divisors.cpp
2083_three_divisors.cpp
2093_check_if_string_is_a_prefix_of_array.cpp
2093_check_if_string_is_a_prefix_of_array.cpp
209_minimum_size_subarray_sum.cpp
209_minimum_size_subarray_sum.cpp
20_valid_parentheses.cpp
20_valid_parentheses.cpp
2106_find_greatest_common_divisor_of_array.cpp
2106_find_greatest_common_divisor_of_array.cpp
2128_reverse_prefix_of_word.cpp
2128_reverse_prefix_of_word.cpp
2148_minimum_number_of_moves_to_seat_everyone.cpp
2148_minimum_number_of_moves_to_seat_everyone.cpp
219_contains_duplicate_ii.cpp
219_contains_duplicate_ii.cpp
21_merge_two_sorted_lists.cpp
21_merge_two_sorted_lists.cpp
2210_find_target_indices_after_sorting_array.cpp
2210_find_target_indices_after_sorting_array.cpp
2231_find_first_palindromic_string_in_the_array.cpp
2231_find_first_palindromic_string_in_the_array.cpp
2248_minimum_cost_of_buying_candies_with_discount.cpp
2248_minimum_cost_of_buying_candies_with_discount.cpp
2264_minimum_sum_of_four_digit_number_after_splitting_digits.cpp
2264_minimum_sum_of_four_digit_number_after_splitting_digits.cpp
2269_count_elements_with_strictly_smaller_and_greater_elements_.cpp
2269_count_elements_with_strictly_smaller_and_greater_elements_.cpp
2274_keep_multiplying_found_values_by_two.cpp
2274_keep_multiplying_found_values_by_two.cpp
2283_sort_even_and_odd_indices_independently.cpp
2283_sort_even_and_odd_indices_independently.cpp
228_summary_ranges.cpp
228_summary_ranges.cpp
2327_largest_number_after_digit_swaps_by_parity.cpp
2327_largest_number_after_digit_swaps_by_parity.cpp
2331_intersection_of_multiple_arrays.cpp
2331_intersection_of_multiple_arrays.cpp
234_palindrome_linked_list.cpp
234_palindrome_linked_list.cpp
242_valid_anagram.cpp
242_valid_anagram.cpp
2436_make_array_zero_by_subtracting_equal_amounts.cpp
2436_make_array_zero_by_subtracting_equal_amounts.cpp
2469_longest_subsequence_with_limited_sum.cpp
2469_longest_subsequence_with_limited_sum.cpp
2491_smallest_even_multiple.cpp
2491_smallest_even_multiple.cpp
2502_sort_the_people.cpp
2502_sort_the_people.cpp
2524_largest_positive_integer_that_exists_with_its_negative.cpp
2524_largest_positive_integer_that_exists_with_its_negative.cpp
2551_apply_operations_to_an_array.cpp
2551_apply_operations_to_an_array.cpp
2575_minimum_cuts_to_divide_a_circle.cpp
2575_minimum_cuts_to_divide_a_circle.cpp
258_add_digits.cpp
258_add_digits.cpp
2602_maximum_enemy_forts_that_can_be_captured.cpp
2602_maximum_enemy_forts_that_can_be_captured.cpp
2608_count_the_digits_that_divide_a_number.cpp
2608_count_the_digits_that_divide_a_number.cpp
2614_maximum_count_of_positive_integer_and_negative_integer.cpp
2614_maximum_count_of_positive_integer_and_negative_integer.cpp
2624_difference_between_element_sum_and_digit_sum_of_an_array.cpp
2624_difference_between_element_sum_and_digit_sum_of_an_array.cpp
View all files
Repository files navigation
README
More
items
LeetCode-Solutions-In-C++
LeetCode solution written in c++
About
LeetCode solution written in c++
Resources
Readme
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.