{"id":19335065,"url":"https://github.com/emanuelschmoczer/leetcode-kotlin","last_synced_at":"2025-07-26T09:14:06.869Z","repository":{"id":261127830,"uuid":"879359191","full_name":"emanuelschmoczer/leetcode-kotlin","owner":"emanuelschmoczer","description":"Kotlin solutions for leetcode.com problems","archived":false,"fork":false,"pushed_at":"2025-05-29T15:26:33.000Z","size":222,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T16:57:11.187Z","etag":null,"topics":["kotlin","leetcode","leetcode-kotlin","leetcode-solutions"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emanuelschmoczer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-27T17:40:46.000Z","updated_at":"2025-05-29T15:26:37.000Z","dependencies_parsed_at":"2024-11-04T21:24:38.246Z","dependency_job_id":"edce8227-53a4-4194-b53f-8323eb79c041","html_url":"https://github.com/emanuelschmoczer/leetcode-kotlin","commit_stats":null,"previous_names":["emanuelschmoczer/leetcode-kotlin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emanuelschmoczer/leetcode-kotlin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelschmoczer%2Fleetcode-kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelschmoczer%2Fleetcode-kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelschmoczer%2Fleetcode-kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelschmoczer%2Fleetcode-kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emanuelschmoczer","download_url":"https://codeload.github.com/emanuelschmoczer/leetcode-kotlin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelschmoczer%2Fleetcode-kotlin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267144572,"owners_count":24042637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kotlin","leetcode","leetcode-kotlin","leetcode-solutions"],"created_at":"2024-11-10T03:04:46.284Z","updated_at":"2025-07-26T09:14:06.856Z","avatar_url":"https://github.com/emanuelschmoczer.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeetCode in Kotlin\n\nMy solutions to LeetCode problems in Kotlin.\n\n## Solutions\n\n|                                                #                                                 |                                                                         Title                                                                         | Difficulty |\n|:------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------:|:----------:|\n|                     [1](https://leetcode.com/problems/two-sum/description/)                      |                                           [Two Sum](src/main/kotlin/com/schmoczer/leetcode/_0001/TwoSum.kt)                                           |    Easy    |\n|                [5](https://leetcode.com/problems/longest-palindromic-substring/)                 |                     [Longest Palindromic Substring](src/main/kotlin/com/schmoczer/leetcode/_0005/LongestPalindromicSubstring.kt)                      |   Medium   |\n|                    [8](https://leetcode.com/problems/string-to-integer-atoi/)                    |                              [String to Integer (atoi)](src/main/kotlin/com/schmoczer/leetcode/_0008/StringToInteger.kt)                              |   Medium   |\n|                      [20](https://leetcode.com/problems/valid-parentheses/)                      |                                 [Valid Parentheses](src/main/kotlin/com/schmoczer/leetcode/_0020/ValidParentheses.kt)                                 |    Easy    |\n|                       [27](https://leetcode.com/problems/remove-element/)                        |                                       [Remove Element](src/main/kotlin/com/schmoczer/leetcode/_0027/README.md)                                        |    Easy    |\n|             [26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)             |                [Remove Duplicates from Sorted Array](src/main/kotlin/com/schmoczer/leetcode/_0026/RemoveDuplicatesFromSortedArray.kt)                 |    Easy    |\n|                     [42](https://leetcode.com/problems/trapping-rain-water/)                     |                               [Trapping Rain Water](src/main/kotlin/com/schmoczer/leetcode/_0042/TrappingRainWater.kt)                                |    Hard    |\n|                        [48](https://leetcode.com/problems/rotate-image/)                         |                                      [Rotate Image](src/main/kotlin/com/schmoczer/leetcode/_0048/RotateImage.kt)                                      |   Medium   |\n|                       [49](https://leetcode.com/problems/group-anagrams/)                        |                                    [Group Anagrams](src/main/kotlin/com/schmoczer/leetcode/_0049/GroupAnagrams.kt)                                    |   Medium   |\n|                        [54](https://leetcode.com/problems/spiral-matrix/)                        |                                     [Spiral Matrix](src/main/kotlin/com/schmoczer/leetcode/_0054/SpiralMatrix.kt)                                     |   Medium   |\n|                      [73](https://leetcode.com/problems/set-matrix-zeroes/)                      |                                 [Set Matrix Zeroes](src/main/kotlin/com/schmoczer/leetcode/_0073/SetMatrixZeroes.kt)                                  |   Medium   |\n|                     [88](https://leetcode.com/problems/merge-sorted-array/)                      |                                [Merge Sorted Array](src/main/kotlin/com/schmoczer/leetcode/_0088/MergeSortedArray.kt)                                 |    Easy    |\n|                      [125](https://leetcode.com/problems/valid-palindrome/)                      |                                  [Valid Palindrome](src/main/kotlin/com/schmoczer/leetcode/_0125/ValidPalindrome.kt)                                  |    Easy    |\n|                     [141](https://leetcode.com/problems/linked-list-cycle/)                      |                                 [Linked List Cycle](src/main/kotlin/com/schmoczer/leetcode/_0141/LinkedListCycle.kt)                                  |    Easy    |\n|                 [151](https://leetcode.com/problems/reverse-words-in-a-string/)                  |                           [Reverse Words in a String](src/main/kotlin/com/schmoczer/leetcode/_0151/ReverseWordsInString.kt)                           |   Medium   |\n|                [186](https://leetcode.com/problems/reverse-words-in-a-string-ii/)                |                      [Reverse Words in a String II](src/main/kotlin/com/schmoczer/leetcode/_0186/ReverseWordsInStringInPlace.kt)                      |   Medium   |\n|                    [206](https://leetcode.com/problems/reverse-linked-list/)                     |                               [Reverse Linked List](src/main/kotlin/com/schmoczer/leetcode/_0206/ReverseLinkedList.kt)                                |    Easy    |\n|                        [283](https://leetcode.com/problems/move-zeroes/)                         |                                       [Move Zeroes](src/main/kotlin/com/schmoczer/leetcode/_0283/MoveZeroes.kt)                                       |    Easy    |\n|                       [344](https://leetcode.com/problems/reverse-string/)                       |                                    [Reverse String](src/main/kotlin/com/schmoczer/leetcode/_0344/ReverseString.kt)                                    |    Easy    |\n|                        [383](https://leetcode.com/problems/ransom-note/)                         |                                       [Ransom Note](src/main/kotlin/com/schmoczer/leetcode/_0383/RansomNote.kt)                                       |    Easy    |\n|                         [412](https://leetcode.com/problems/fizz-buzz/)                          |                                         [Fizz Buzz](src/main/kotlin/com/schmoczer/leetcode/_0412/FizzBuzz.kt)                                         |    Easy    |\n|                    [485](https://leetcode.com/problems/max-consecutive-ones/)                    |                              [Max Consecutive Ones](src/main/kotlin/com/schmoczer/leetcode/_0485/MaxConsecutiveOnes.kt)                               |    Easy    |\n|                       [773](https://leetcode.com/problems/sliding-puzzle/)                       |                                    [Sliding Puzzle](src/main/kotlin/com/schmoczer/leetcode/_0773/SlidingPuzzle.kt)                                    |    Hard    |\n|                       [796](https://leetcode.com/problems/rotate-string/)                        |                                     [Rotate String](src/main/kotlin/com/schmoczer/leetcode/_0796/RotateString.kt)                                     |    Easy    |\n|                 [876](https://leetcode.com/problems/middle-of-the-linked-list/)                  |                          [Middle of the Linked List](src/main/kotlin/com/schmoczer/leetcode/_0876/MiddleOfTheLinkedList.kt)                           |    Easy    |\n|                    [905](https://leetcode.com/problems/sort-array-by-parity/)                    |                               [Sort Array By Parity](src/main/kotlin/com/schmoczer/leetcode/_0905/SortArrayByParity.kt)                               |    Easy    |\n|                    [941](https://leetcode.com/problems/valid-mountain-array/)                    |                              [Valid Mountain Array](src/main/kotlin/com/schmoczer/leetcode/_0941/ValidMountainArray.kt)                               |    Easy    |\n|                 [977](https://leetcode.com/problems/squares-of-a-sorted-array/)                  |                          [Squares of a Sorted Array](src/main/kotlin/com/schmoczer/leetcode/_0977/SquaresOfASortedArray.kt)                           |    Easy    |\n|                      [1089](https://leetcode.com/problems/duplicate-zeros/)                      |                                   [Duplicate Zeros](src/main/kotlin/com/schmoczer/leetcode/_1089/DuplicateZeros.kt)                                   |    Easy    |\n|          [1295](https://leetcode.com/problems/find-numbers-with-even-number-of-digits/)          |             [Find Numbers with Even Number of Digits](src/main/kotlin/com/schmoczer/leetcode/_1295/FindNumbersWithEvenNumberOfDigits.kt)              |    Easy    |\n|   [1299](https://leetcode.com/problems/replace-elements-with-greatest-element-on-right-side/)    | [Replace Elements with Greatest Element on Right Side](src/main/kotlin/com/schmoczer/leetcode/_1299/ReplaceElementsWithGreatestElementOnRightSide.kt) |    Easy    |\n|        [1342](https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/)         |           [Number of Steps to Reduce a Number to Zero](src/main/kotlin/com/schmoczer/leetcode/_1342/NumberOfStepsToReduceANumberToZero.kt)            |    Easy    |\n|              [1346](https://leetcode.com/problems/check-if-n-and-its-double-exist/)              |                     [Check If N and Its Double Exist](src/main/kotlin/com/schmoczer/leetcode/_1346/CheckIfNAndItsDoubleExist.kt)                      |    Easy    |\n|                  [1480](https://leetcode.com/problems/running-sum-of-1d-array/)                  |                            [Running Sum of 1d Array](src/main/kotlin/com/schmoczer/leetcode/_1480/RunningSumOf1dArray.kt)                             |    Easy    |\n|   [1574](https://leetcode.com/problems/shortest-subarray-to-be-removed-to-make-array-sorted/)    |               [Shortest Subarray to be Removed to Make Array Sorted](src/main/kotlin/com/schmoczer/leetcode/_1574/ShortestSubarray.kt)                |   Medium   |\n|                  [1672](https://leetcode.com/problems/richest-customer-wealth/)                  |                           [Richest Customer Wealth](src/main/kotlin/com/schmoczer/leetcode/_1672/RichestCustomerWealth.kt)                            |    Easy    |\n|                [1829](https://leetcode.com/problems/maximum-xor-for-each-query/)                 |                         [Maximum XOR for Each Query](src/main/kotlin/com/schmoczer/leetcode/_1829/MaximumXorForEachQuery.kt)                          |   Medium   |\n|                     [1861](https://leetcode.com/problems/rotating-the-box/)                      |                                  [Rotating the Box](src/main/kotlin/com/schmoczer/leetcode/_1861/RotatingTheBox.kt)                                   |   Medium   |\n|          [1957](https://leetcode.com/problems/delete-characters-to-make-fancy-string/)           |              [Delete Characters to Make Fancy String](src/main/kotlin/com/schmoczer/leetcode/_1957/DeleteCharactersToMakeFancyString.kt)              |    Easy    |\n|                    [1975](https://leetcode.com/problems/maximum-matrix-sum/)                     |                                [Maximum Matrix Sum](src/main/kotlin/com/schmoczer/leetcode/_1975/MaximumMatrixSum.kt)                                 |   Medium   |\n|  [2064](https://leetcode.com/problems/minimized-maximum-of-products-distributed-to-any-store/)   |              [Minimized Maximum of Products Distributed to Any Store](src/main/kotlin/com/schmoczer/leetcode/_2064/MinimizedMaximum.kt)               |   Medium   |\n|            [2070](https://leetcode.com/problems/most-beautiful-item-for-each-query/)             |                  [Most Beautiful Item for Each Query](src/main/kotlin/com/schmoczer/leetcode/_2070/MostBeautifulItemForEachQuery.kt)                  |   Medium   |\n|             [2257](https://leetcode.com/problems/count-unguarded-cells-in-the-grid/)             |                   [Count Unguarded Cells in the Grid](src/main/kotlin/com/schmoczer/leetcode/_2257/CountUnguardedCellsInTheGrid.kt)                   |   Medium   |\n|  [2275](https://leetcode.com/problems/largest-combination-with-bitwise-and-greater-than-zero/)   |             [Largest Combination With Bitwise AND Greater Than Zero](src/main/kotlin/com/schmoczer/leetcode/_2275/LargestCombination.kt)              |   Medium   |\n|                     [2490](https://leetcode.com/problems/circular-sentence/)                     |                                 [Circular Sentence](src/main/kotlin/com/schmoczer/leetcode/_2490/CircularSentence.kt)                                 |    Easy    |\n|       [2516](https://leetcode.com/problems/take-k-of-each-character-from-left-and-right/)        |         [Take K of Each Character From Left and Right](src/main/kotlin/com/schmoczer/leetcode/_2516/TakeKOfEachCharacterFromLeftAndRight.kt)          |   Medium   |\n|          [2577](https://leetcode.com/problems/minimum-time-to-visit-a-cell-in-a-grid/)           |                [Minimum Time to Visit a Cell In a Grid](src/main/kotlin/com/schmoczer/leetcode/_2577/MinimumTimeToVisitCellInGrid.kt)                 |    Hard    |\n| [2914](https://leetcode.com/problems/minimum-number-of-changes-to-make-binary-string-beautiful/) |                [Minimum Number of Changes to Make Binary String Beautiful](src/main/kotlin/com/schmoczer/leetcode/_2914/MinChanges.kt)                |   Medium   |\n|                     [2924](https://leetcode.com/problems/find-champion-ii/)                      |                                  [Find Champion II](src/main/kotlin/com/schmoczer/leetcode/_2924/FindChampionII.kt)                                   |   Medium   |\n|                [3011](https://leetcode.com/problems/find-if-array-can-be-sorted/)                |                         [Find if Array Can Be Sorted](src/main/kotlin/com/schmoczer/leetcode/_3011/FindIfArrayCanBeSorted.kt)                         |   Medium   |\n|                     [3133](https://leetcode.com/problems/minimum-array-end/)                     |                                 [Minimum Array End](src/main/kotlin/com/schmoczer/leetcode/_3133/MinimumArrayEnd.kt)                                  |   Medium   |\n|                  [3163](https://leetcode.com/problems/string-compression-iii/)                   |                             [String Compression III](src/main/kotlin/com/schmoczer/leetcode/_3163/StringCompression3.kt)                              |   Medium   |\n|           [3254](https://leetcode.com/problems/find-the-power-of-k-size-subarrays-i/)            |                 [Find the Power of K-Size Subarrays I](src/main/kotlin/com/schmoczer/leetcode/_3254/FindThePowerOfKSizeSubarrays.kt)                  |   Medium   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelschmoczer%2Fleetcode-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femanuelschmoczer%2Fleetcode-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelschmoczer%2Fleetcode-kotlin/lists"}