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-
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
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
113 Commits
113 Commits
Folders and files
Name
Name
Last commit message
Last commit date
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
1137_height_checker.cpp
1137_height_checker.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
125_valid_palindrome.cpp
125_valid_palindrome.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
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
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
1547_destination_city.cpp
1547_destination_city.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
1626_can_make_arithmetic_progression_from_sequence.cpp
1626_can_make_arithmetic_progression_from_sequence.cpp
1646_kth_missing_positive_number.cpp
1646_kth_missing_positive_number.cpp
164_maximum_gap.cpp
164_maximum_gap.cpp
169_majority_element.cpp
169_majority_element.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
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
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
20_valid_parentheses.cpp
20_valid_parentheses.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
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
2575_minimum_cuts_to_divide_a_circle.cpp
2575_minimum_cuts_to_divide_a_circle.cpp
258_add_digits.cpp
258_add_digits.cpp
2608_count_the_digits_that_divide_a_number.cpp
2608_count_the_digits_that_divide_a_number.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
263_ugly_number.cpp
263_ugly_number.cpp
268_missing_number.cpp
268_missing_number.cpp
26_remove_duplicates_from_sorted_array.cpp
26_remove_duplicates_from_sorted_array.cpp
278_first_bad_version.cpp
278_first_bad_version.cpp
27_remove_element.cpp
27_remove_element.cpp
283_move_zeroes.cpp
283_move_zeroes.cpp
28_find_the_index_of_the_first_occurrence_in_a_string.cpp
28_find_the_index_of_the_first_occurrence_in_a_string.cpp
2_add_two_numbers.cpp
2_add_two_numbers.cpp
326_power_of_three.cpp
326_power_of_three.cpp
3275_minimum_number_of_pushes_to_type_word_i.cpp
3275_minimum_number_of_pushes_to_type_word_i.cpp
3321_type_of_triangle.cpp
3321_type_of_triangle.cpp
338_counting_bits.cpp
338_counting_bits.cpp
342_power_of_four.cpp
342_power_of_four.cpp
349_intersection_of_two_arrays.cpp
349_intersection_of_two_arrays.cpp
35_search_insert_position.cpp
35_search_insert_position.cpp
367_valid_perfect_square.cpp
367_valid_perfect_square.cpp
374_guess_number_higher_or_lower.cpp
374_guess_number_higher_or_lower.cpp
3859_maximum_product_of_two_digits.cpp
3859_maximum_product_of_two_digits.cpp
389_find_the_difference.cpp
389_find_the_difference.cpp
3918_check_divisibility_by_digit_sum_and_product.cpp
3918_check_divisibility_by_digit_sum_and_product.cpp
4107_find_missing_elements.cpp
4107_find_missing_elements.cpp
414_third_maximum_number.cpp
414_third_maximum_number.cpp
415_add_strings.cpp
415_add_strings.cpp
441_arranging_coins.cpp
441_arranging_coins.cpp
455_assign_cookies.cpp
455_assign_cookies.cpp
500_keyboard_row.cpp
500_keyboard_row.cpp
504_base_7.cpp
504_base_7.cpp
506_relative_ranks.cpp
506_relative_ranks.cpp
507_perfect_number.cpp
507_perfect_number.cpp
561_array_partition.cpp
561_array_partition.cpp
56_merge_intervals.cpp
56_merge_intervals.cpp
58_length_of_last_word.cpp
58_length_of_last_word.cpp
5_longest_palindromic_substring.cpp
5_longest_palindromic_substring.cpp
628_maximum_product_of_three_numbers.cpp
628_maximum_product_of_three_numbers.cpp
645_set_mismatch.cpp
645_set_mismatch.cpp
66_plus_one.cpp
66_plus_one.cpp
674_longest_continuous_increasing_subsequence.cpp
674_longest_continuous_increasing_subsequence.cpp
67_add_binary.cpp
67_add_binary.cpp
69_sqrt_x_.cpp
69_sqrt_x_.cpp
70_climbing_stairs.cpp
70_climbing_stairs.cpp
745_find_smallest_letter_greater_than_target.cpp
745_find_smallest_letter_greater_than_target.cpp
748_largest_number_at_least_twice_of_others.cpp
748_largest_number_at_least_twice_of_others.cpp
75_sort_colors.cpp
75_sort_colors.cpp
792_binary_search.cpp
792_binary_search.cpp
7_reverse_integer.cpp
7_reverse_integer.cpp
830_largest_triangle_area.cpp
830_largest_triangle_area.cpp
83_remove_duplicates_from_sorted_list.cpp
83_remove_duplicates_from_sorted_list.cpp
88_merge_sorted_array.cpp
88_merge_sorted_array.cpp
908_middle_of_the_linked_list.cpp
908_middle_of_the_linked_list.cpp
941_sort_array_by_parity.cpp
941_sort_array_by_parity.cpp
94_binary_tree_inorder_traversal.cpp
94_binary_tree_inorder_traversal.cpp
958_sort_array_by_parity_ii.cpp
958_sort_array_by_parity_ii.cpp
9_palindrome_number.cpp
9_palindrome_number.cpp
README.md
README.md
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.