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 }}
AndrejGockov
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
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
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
713 Commits
713 Commits
Folders and files
Name
Name
Last commit message
Last commit date
0009. Palindrome Number
0009. Palindrome Number
0028. Find the Index of the First Occurrence
0028. Find the Index of the First Occurrence
0058. Length of Last Word
0058. Length of Last Word
0066. Plus One
0066. Plus One
0125. Valid Palindrome
0125. Valid Palindrome
0226. Invert Binary Tree
0226. Invert Binary Tree
0283. Move Zeroes
0283. Move Zeroes
0344. Reverse String
0344. Reverse String
0392. Is Subsequence
0392. Is Subsequence
0412. Fizz Buzz
0412. Fizz Buzz
0485. Max Consecutive Ones
0485. Max Consecutive Ones
0507 Perfect Number
0507 Perfect Number
0509. Fibonacci Number
0509. Fibonacci Number
0520 Detect Capital
0520 Detect Capital
0557. Reverse Words in a String III
0557. Reverse Words in a String III
0680. Valid Palindrome II
0680. Valid Palindrome II
0709 To Lower Case
0709 To Lower Case
0922. Sort Array By Parity II
0922. Sort Array By Parity II
1-two-sum
1-two-sum
100-same-tree
100-same-tree
1005-univalued-binary-tree
1005-univalued-binary-tree
101-symmetric-tree
101-symmetric-tree
1018-largest-perimeter-triangle
1018-largest-perimeter-triangle
1019-squares-of-a-sorted-array
1019-squares-of-a-sorted-array
1039-find-the-town-judge
1039-find-the-town-judge
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1047-maximize-sum-of-array-after-k-negations
1047-maximize-sum-of-array-after-k-negations
110-balanced-binary-tree
110-balanced-binary-tree
112-path-sum
112-path-sum
1128-remove-all-adjacent-duplicates-in-string
1128-remove-all-adjacent-duplicates-in-string
1137-height-checker
1137-height-checker
1137. N-th Tribonacci Number
1137. N-th Tribonacci Number
1205-defanging-an-ip-address
1205-defanging-an-ip-address
1212-sequential-digits
1212-sequential-digits
1227-number-of-equivalent-domino-pairs
1227-number-of-equivalent-domino-pairs
1256-rank-transform-of-an-array
1256-rank-transform-of-an-array
1272-invalid-transactions
1272-invalid-transactions
129-sum-root-to-leaf-numbers
129-sum-root-to-leaf-numbers
1293-three-consecutive-odds
1293-three-consecutive-odds
13-roman-to-integer
13-roman-to-integer
1329-minimum-cost-to-move-chips-to-the-same-position
1329-minimum-cost-to-move-chips-to-the-same-position
1341-split-a-string-in-balanced-strings
1341-split-a-string-in-balanced-strings
136-single-number
136-single-number
1364-tuple-with-same-product
1364-tuple-with-same-product
137-single-number-ii
137-single-number-ii
1392-find-the-difference-of-two-arrays
1392-find-the-difference-of-two-arrays
14-longest-common-prefix
14-longest-common-prefix
1406-subtract-the-product-and-sum-of-digits-of-an-integer
1406-subtract-the-product-and-sum-of-digits-of-an-integer
141-linked-list-cycle
141-linked-list-cycle
1421-find-numbers-with-even-number-of-digits
1421-find-numbers-with-even-number-of-digits
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
1444-number-of-steps-to-reduce-a-number-to-zero
1444-number-of-steps-to-reduce-a-number-to-zero
1446. Consecutive Characters
1446. Consecutive Characters
1448-maximum-69-number
1448-maximum-69-number
1468-check-if-n-and-its-double-exist
1468-check-if-n-and-its-double-exist
1477-product-of-the-last-k-numbers
1477-product-of-the-last-k-numbers
1480-running-sum-of-1d-array
1480-running-sum-of-1d-array
1482-how-many-numbers-are-smaller-than-the-current-number
1482-how-many-numbers-are-smaller-than-the-current-number
150-evaluate-reverse-polish-notation
150-evaluate-reverse-polish-notation
1512. Number of Good Pairs
1512. Number of Good Pairs
1528-kids-with-the-greatest-number-of-candies
1528-kids-with-the-greatest-number-of-candies
155-min-stack
155-min-stack
1560-number-of-students-doing-homework-at-a-given-time
1560-number-of-students-doing-homework-at-a-given-time
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1570-final-prices-with-a-special-discount-in-a-shop
1570-final-prices-with-a-special-discount-in-a-shop
1582-design-browser-history
1582-design-browser-history
1585-the-kth-factor-of-n
1585-the-kth-factor-of-n
1642-water-bottles
1642-water-bottles
1651-shuffle-string
1651-shuffle-string
1662 Check If Two String Arrays are Equivalent
1662 Check If Two String Arrays are Equivalent
1666-make-the-string-great
1666-make-the-string-great
1677-matrix-diagonal-sum
1677-matrix-diagonal-sum
168-excel-sheet-column-title
168-excel-sheet-column-title
1688. Count of Matches in Tournament
1688. Count of Matches in Tournament
169-majority-element
169-majority-element
1693-sum-of-all-odd-length-subarrays
1693-sum-of-all-odd-length-subarrays
1708-design-parking-system
1708-design-parking-system
171-excel-sheet-column-number
171-excel-sheet-column-number
1716. Calculate Money in Leetcode Bank
1716. Calculate Money in Leetcode Bank
1737-maximum-nesting-depth-of-the-parentheses
1737-maximum-nesting-depth-of-the-parentheses
1759. Count Number of Homogenous Substrings
1759. Count Number of Homogenous Substrings
176-second-highest-salary
176-second-highest-salary
178-rank-scores
178-rank-scores
1784. Check if Binary String Has at Most One Segment of Ones
1784. Check if Binary String Has at Most One Segment of Ones
1786-count-the-number-of-consistent-strings
1786-count-the-number-of-consistent-strings
18-4sum
18-4sum
1858-latest-time-by-replacing-hidden-digits
1858-latest-time-by-replacing-hidden-digits
1869. Longer Contiguous Segments of Ones than Zeros
1869. Longer Contiguous Segments of Ones than Zeros
187-repeated-dna-sequences
187-repeated-dna-sequences
1878-check-if-array-is-sorted-and-rotated
1878-check-if-array-is-sorted-and-rotated
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
1904-second-largest-digit-in-a-string
1904-second-largest-digit-in-a-string
191-number-of-1-bits
191-number-of-1-bits
1915-check-if-one-string-swap-can-make-strings-equal
1915-check-if-one-string-swap-can-make-strings-equal
1916-find-center-of-star-graph
1916-find-center-of-star-graph
1927-maximum-ascending-subarray-sum
1927-maximum-ascending-subarray-sum
1944-truncate-sentence
1944-truncate-sentence
1952. Three Divisors
1952. Three Divisors
1954-replace-all-digits-with-characters
1954-replace-all-digits-with-characters
1961-maximum-ice-cream-bars
1961-maximum-ice-cream-bars
View all files
Repository files navigation
README
More
items
LeetCode
This repository is documentation for all my LeetCode solutions.
About
My LeetCode solutions
leetcode.com/gockovandrej/
Topics
cpp
csh
java
leetcode
leetcode-solutions
Resources
Readme
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.