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 }}
MCEINS
LeetCode
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
LeetCode
/
string
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
LeetCode
/
string
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0005_longest_palindromic_substring
0005_longest_palindromic_substring
0006_zigzag_conversion
0006_zigzag_conversion
0013_roman_to_integer
0013_roman_to_integer
0014_longest_common_prefix
0014_longest_common_prefix
0017_letter_combinations_of_a_phone_number
0017_letter_combinations_of_a_phone_number
0020_valid_parentheses
0020_valid_parentheses
0022_generate_parentheses
0022_generate_parentheses
0043_multiply_strings
0043_multiply_strings
0067_add_binary
0067_add_binary
0093_restore_ip_addresses
0093_restore_ip_addresses
0151_reverse_words_in_a_string
0151_reverse_words_in_a_string
0227_basic_calculator_ii
0227_basic_calculator_ii
0344_reverse_string
0344_reverse_string
0383_ransom_note
0383_ransom_note
0415_add_strings
0415_add_strings
0434_number_of_segments_in_a_string
0434_number_of_segments_in_a_string
0443_string_compression
0443_string_compression
0459_repeated_substring_pattern
0459_repeated_substring_pattern
0520_detect_capital
0520_detect_capital
0539_minimum_time_difference
0539_minimum_time_difference
0577_reverse_words_in_a_string_iii
0577_reverse_words_in_a_string_iii
0583_delete_operation_for_two_strings
0583_delete_operation_for_two_strings
0647_palindromic_substrings
0647_palindromic_substrings
0678_valid_parenthesis_string
0678_valid_parenthesis_string
0680_valid_palindrome_ii
0680_valid_palindrome_ii
0696_count_binary_substrings
0696_count_binary_substrings
0767_reorganize_string
0767_reorganize_string
0791_custom_sort_string
0791_custom_sort_string
0816_ambiguous_coordinates
0816_ambiguous_coordinates
0842_split_array_into_fibonacci_sequence
0842_split_array_into_fibonacci_sequence
0848_shifting_letters
0848_shifting_letters
0856_score_of_parentheses
0856_score_of_parentheses
0859_buddy_strings
0859_buddy_strings
0890_find_and_replace_pattern
0890_find_and_replace_pattern
0916_word_subsets
0916_word_subsets
0917_reverse_only_letters
0917_reverse_only_letters
0925_long_pressed_name
0925_long_pressed_name
1309_decrypt_string_from_alphabet_to_integer_mapping
1309_decrypt_string_from_alphabet_to_integer_mapping
1347_minimum_number_of_steps_to_make_two_strings_anagram
1347_minimum_number_of_steps_to_make_two_strings_anagram
1358_number_of_substrings_containing_all_three_characters
1358_number_of_substrings_containing_all_three_characters
View all files
You can’t perform that action at this time.