- Notifications
You must be signed in to change notification settings - Fork110
This repository contains the most common algorithms and data structures written in the Kotlin language with simple and concise code.
License
DmitryTsyvtsyn/Kotlin-Algorithms-and-Design-Patterns
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository lists the most common algorithms, data structures, and design patterns written in the Kotlin programming language.
All code is divided into separate packages:
sorting- sorting algorithmssearch- search algorithmsstructures- data structure (lists, arrays, stack, queue, binary trees, e.t.c)design-patterns- design patternsother- other algorithms (Levenshtein distance, Knut Morris Pratt algorithm, e.t.c)
For each code file, tests are made, which are located in thetest/kotlin directory
Also, whenever possible, I addjavadoc for each class, method, and file
Content:
package
design_patterns- design patternspackage
structures- data structurepackage
sorting- sorting algorithmspackage
search- search algorithmspackage
other- other algorithms- Finite state machine
- Euclid's algorithm
- Factorial
- Factorial from Google Guava library
- Factorial of BigInteger's with cache
- Factorial with cache
- FizzBuzz
- Knut Morris Pratt's Algorithm for finding a substring
- Levenshtein distance
- Finding the maximum
- Finding the minimum
- Palindrome
- Parenthesis checking algorithm
- Reverse Array
- Sieve of Eratosthenes
- The square root of a number
- StringEqualsHash
- Swap algorithm
If you are interested in my repository or you have ideas on how to improve it or add something write:Telegram,Gmail
MIT License Copyright (c) 2023 Dmitry Tsyvtsyn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.About
This repository contains the most common algorithms and data structures written in the Kotlin language with simple and concise code.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
