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 }}
eric496
/
lintcode
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
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
Files
Expand file tree
master
Breadcrumbs
lintcode
/
math
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
lintcode
/
math
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
128_hash_function.java
128_hash_function.java
140_fast_power.java
140_fast_power.java
141_sqrtx.java
141_sqrtx.java
15_permutations.java
15_permutations.java
167_add_two_numbers.java
167_add_two_numbers.java
16_permutations_II.java
16_permutations_II.java
186_max_points_on_a_line.java
186_max_points_on_a_line.java
190_next_permutation_II.java
190_next_permutation_II.java
197_permutation_index.java
197_permutation_index.java
2_trailing_zeros.java
2_trailing_zeros.java
366_fibonacci.java
366_fibonacci.java
382_triangle_count.java
382_triangle_count.java
388_permutation_sequence.java
388_permutation_sequence.java
408_add_binary.java
408_add_binary.java
413_reverse_integer.java
413_reverse_integer.java
428_pow_function.java
428_pow_function.java
488_happy_number.java
488_happy_number.java
513_perfect_squares.java
513_perfect_squares.java
517_ugly_number.java
517_ugly_number.java
51_previous_permutation.java
51_previous_permutation.java
52_next_permutation.java
52_next_permutation.java
569_add_digits.java
569_add_digits.java
655_bit_integer_addition.java
655_bit_integer_addition.java
656_big_integer_multiplication.java
656_big_integer_multiplication.java
681_first_missing_prime_number.java
681_first_missing_prime_number.java
697_check_sum_of_square_numbers.java
697_check_sum_of_square_numbers.java
704_light_switcher.java
704_light_switcher.java
706_binary_time.java
706_binary_time.java
719_calculate_maximum_value.java
719_calculate_maximum_value.java
728_three_distinct_factors.java
728_three_distinct_factors.java
729_last_digit_by_factorial_divide.java
729_last_digit_by_factorial_divide.java
730_sum_of_all_subsets.java
730_sum_of_all_subsets.java
734_number_of_subsequences_of_form_a^i_b^j_c^k.java
734_number_of_subsequences_of_form_a^i_b^j_c^k.java
742_digit_divide_numbers.java
742_digit_divide_numbers.java
744_sum_of_first_k_even_length_palindrome_numbers.java
744_sum_of_first_k_even_length_palindrome_numbers.java
777_valid_perfect_square.java
777_valid_perfect_square.java
View all files
You can’t perform that action at this time.