{"id":37177645,"url":"https://github.com/aint/leetcode","last_synced_at":"2026-01-14T20:43:04.567Z","repository":{"id":37482897,"uuid":"147410937","full_name":"aint/leetcode","owner":"aint","description":"🎓 My polyglot solutions of Leetcode problems. Scala, Java, Golang, Python, C++ etc.","archived":false,"fork":false,"pushed_at":"2025-04-20T20:30:14.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T21:26:37.703Z","etag":null,"topics":["algorithms","cpp","golang","java","leetcode","python","rust","scala"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-09-04T20:19:18.000Z","updated_at":"2025-04-20T20:30:18.000Z","dependencies_parsed_at":"2024-04-07T20:29:43.712Z","dependency_job_id":"1f3f0fc3-a261-4d54-ad42-fc2ce8c92ce0","html_url":"https://github.com/aint/leetcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aint/leetcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aint%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aint%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aint%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aint%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aint","download_url":"https://codeload.github.com/aint/leetcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aint%2Fleetcode/sbom","scorecard":{"id":173182,"data":{"date":"2025-08-11","repo":{"name":"github.com/aint/leetcode","commit":"dcea80959a81d2990d7b0da7e6aa7d0d2d4c1dc8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T17:05:59.322Z","repository_id":37482897,"created_at":"2025-08-16T17:05:59.322Z","updated_at":"2025-08-16T17:05:59.322Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["algorithms","cpp","golang","java","leetcode","python","rust","scala"],"created_at":"2026-01-14T20:43:03.799Z","updated_at":"2026-01-14T20:43:04.550Z","avatar_url":"https://github.com/aint.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leetcode\n\n[![LeetCode stats](https://leetcard.jacoblin.cool/aint)](https://leetcard.jacoblin.cool/aint)\n\n\n|  #  | Title | Solution | Topics |\n| --- | ----- | -------- | ------ |\n|1| [Two sum](https://leetcode.com/problems/two-sum/description/) | [Java](./array/TwoSum.java) |\n|2| [Add Two Numbers](https://leetcode.com/problems/add-two-numbers/) | [Golang](./linkedList/AddTwoNumbers.go) |\n|3| [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/) | [Scala](./string/LongestSubstringWithoutRepeatingCharacters.scala) |\n|5| [Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring/) | [Java](./string/LongestPalindromicSubstring.java) |\n|7| [Reverse Integer](https://leetcode.com/problems/reverse-integer/) | [C++](./math/reverse_integer.cpp) |\n|9| [Palindrome Number](https://leetcode.com/problems/palindrome-number/description/) | [Golang](./math/PalindromeNumber.go) |\n|11| [Container With Most Water](https://leetcode.com/problems/container-with-most-water/) | [Python](./python/11_container_with_most_water.py) | two pointers |\n|14| [Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix/description/) | [Golang](./go/14_longest_common_prefix.go) ||\n|21| [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/description/) | [Golang](./go/21_merge_two_sorted_lists.go.go) | dummy head |\n|26| [Remove Duplicates from Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array/) | [Kotlin](./kotlin/26_remove_duplicates_from_sorted_array.kt) | two pointers |\n|27| [Remove Element](https://leetcode.com/problems/remove-element/) | [Golang](./array/RemoveElement.go) |\n|35| [Search Insert Position](https://leetcode.com/problems/search-insert-position/) | [Golang](./go/35_search_insert_position.go) | binary search |\n|43| [Multiply Strings](https://leetcode.com/problems/multiply-strings/) | [Golang](./math/MultiplyStrings.go) |\n|62| [Rotate List](https://leetcode.com/problems/rotate-list/) | [Scala](./scala/62_rotate_list.scala) | linked list |\n|88| [Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array/) | [Python](./python/88_merge_sorted_array.py) | two pointers |\n|121| [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/) | [Python](./python/121_best_time_to_buy_sell.py) | two pointers |\n|125| [Valid Palindrome](https://leetcode.com/problems/valid-palindrome/) | [Kotlin](./kotlin/125_valid_palindrome.kt) | two pointers |\n|129| [Sum Root to Leaf Numbers](https://leetcode.com/problems/sum-root-to-leaf-numbers/) | [Golang](./tree/SumRootToLeafNumbers.go) |\n|201| [Contains Duplicate II](https://leetcode.com/problems/contains-duplicate-ii/) | [Golang](./array/ContainsDuplicate2.go) |\n|203| [Remove Linked List Elements](https://leetcode.com/problems/remove-linked-list-elements/description/) | [Python](./linkedList/RemoveLinkedListElements.py) |\n|205| [Isomorphic Strings](https://leetcode.com/problems/isomorphic-strings/description/) | [Golang](./go/205_isomorphic_strings.go) |\n|206| [Reverse Linked List](https://leetcode.com/problems/reverse-linked-list/description/) | [Scala](./linkedList/ReverseLinkedList.scala) |\n|225| [Implement Stack using Queues](https://leetcode.com/problems/implement-stack-using-queues/) | [Golang](./go/225_implement_stack_using_queues.go) | stack |\n|237| [Delete Node in a Linked List](https://leetcode.com/problems/delete-node-in-a-linked-list/description/) | [Python](./linkedList/DeleteNodeInLinkedList.py) |\n|242| [Valid Anagram](https://leetcode.com/problems/valid-anagram/) | [Golang](./string/ValidAnagram.go) |\n|258| [Add digits](https://leetcode.com/problems/add-digits/) | [Python](./python/258_add_digits.py) | recursion |\n|268| [Missing Number](https://leetcode.com/problems/missing-number/) | [Python](./python/268_missing_number.py) | math |\n|278| [First Bad Version](https://leetcode.com/problems/first-bad-version/) | [Python](./python/278_first_bad_version.py) | binary search |\n|283| [Move Zeroes](https://leetcode.com/problems/move-zeroes/) | [Kotlin](./kotlin/283_move_zeroes.kt) | two pointers |\n|344| [Reverse String](https://leetcode.com/problems/reverse-string/description/) | [Scala](./string/ReverseString.scala) |\n|345| [Reverse Vowels of a String](https://leetcode.com/problems/reverse-vowels-of-a-string) | [Python](./python/345_reverse_vowels_of_string.py) | two pointers |\n|347| [Top K Frequent Elements](https://leetcode.com/problems/top-k-frequent-elements/) | [Kotlin](./array/TopKFrequentElements.kt) |\n|349| [Intersection of Two Arrays](https://leetcode.com/problems/intersection-of-two-arrays/) | [JavaScript](./array/IntersectionOfTwoArrays.js) |\n|374| [Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower/) | [Python](./python/374_guess_number_higher_or_lower.py) | binary search |\n|430| [Flatten a Multilevel Doubly Linked List](https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list/) | [Java](./linkedList/FlattenMultilevelDoublyLinkedList.java) |\n|438| [Find All Anagrams in a String](https://leetcode.com/problems/find-all-anagrams-in-a-string/) | [Golang](./string/FindAllAnagramsInString.go) |\n|567| [Permutation in String](https://leetcode.com/problems/permutation-in-string/) | [Golang](./string/PermutationInString.go) |\n|653| [Two Sum IV - Input is a BST](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/) | [Golang](./tree/TwoSumIV.go) |\n|724| [Find Pivot Index](https://leetcode.com/problems/find-pivot-index/) | [TypeScript](./array/FindPivotIndex.ts) |\n|832| [Flipping an Image](https://leetcode.com/problems/flipping-an-image/) | [Golang](./array/FlippingImage.go) |\n|905| [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/) | [Kotlin](./kotlin/905_sort_array_by_parity.kt) | two pointers |\n|917| [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) | [Golang](./string/ReverseOnlyLetters.go) |\n|922| [Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii/) | [Kotlin](./kotlin/922_sort_array_by_parity_ii.kt) | two pointers |\n|977| [Squares of a Sorted Array](https://leetcode.com/problems/squares-of-a-sorted-array/) | [Python](./python/977_squares_of_sorted_array.py) | two pointers |\n|988| [Smallest String Starting From Leaf](https://leetcode.com/problems/smallest-string-starting-from-leaf/) | [Golang](./tree/SmallestStringStartingFromLeaf.go) |\n|1302| [Deepest Leaves Sum](https://leetcode.com/problems/deepest-leaves-sum/) | [Golang](./tree/DeepestLeavesSum.go) |\n|1309| [Decrypt String from Alphabet to Integer Mapping](https://leetcode.com/problems/decrypt-string-from-alphabet-to-integer-mapping/) | [Rust](./string/DecryptStringFromAlphabetToIntegerMapping.rs) |\n|1436| [Destination City](https://leetcode.com/problems/destination-city/) | [Golang](./string/DestinationCity.go) |\n|1448| [Count Good Nodes in Binary Tree](https://leetcode.com/problems/count-good-nodes-in-binary-tree/) | [Golang](./tree/CountGoodNodesInBinaryTree.go) |\n|1470| [Shuffle the Array](https://leetcode.com/problems/shuffle-the-array/) | [Python](./array/ShuffleArray.py) |\n|1491| [Average Salary Excluding the Minimum and Maximum Salary](https://leetcode.com/problems/average-salary-excluding-the-minimum-and-maximum-salary/) | [Golang](./array/AverageSalaryExcludingMinAndMaxSalary.go) |\n|1588| [Sum of All Odd Length Subarrays](https://leetcode.com/problems/sum-of-all-odd-length-subarrays/) | [Golang](./array/SumOfAllOddLengthSubarrays.go) |\n|1769| [Minimum Number of Operations to Move All Balls to Each Box](https://leetcode.com/problems/minimum-number-of-operations-to-move-all-balls-to-each-box/) | [Golang](./array/MinNumberOperationsToMoveAllBallsToEachBox.go) |\n|1827| [Minimum Operations to Make the Array Increasing](https://leetcode.com/problems/minimum-operations-to-make-the-array-increasing/) | [Python](./python/1827_minimum_operations_to_make_array_increasing.py) | greedy |\n|2260| [Minimum Consecutive Cards to Pick Up](https://leetcode.com/problems/minimum-consecutive-cards-to-pick-up/) | [Golang](./array/MinConsecutiveCardsToPickUp.go) |\n|2461| [Maximum Sum of Distinct Subarrays With Length K](https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k/) | [Python](./python/2461_max_sum_of_distinct_subarrays_with_length_k.py) | Sliding Window |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faint%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faint%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faint%2Fleetcode/lists"}