1
- ![ Алгоритмы на Kotlin] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /assets/algo_logo.png)
1
+ ![ Алгоритмы на Kotlin] ( /assets/algo_logo.png )
2
2
3
3
# Kotlin Algorithms and Design Patterns
4
4
5
- <a href =" https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master/ README_ru.md" target =" _blank " ><img src =" https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /assets/russian_version.png" width =" 300px " /></a >
5
+ <a href =" / README_ru.md" target =" _blank " ><img src =" /assets/russian_version.png " width =" 300px " /></a >
6
6
7
7
This repository lists the most common algorithms, data structures, and design patterns written in the Kotlin programming language.
8
8
@@ -21,57 +21,57 @@ Also, whenever possible, I add *javadoc* for each class, method, and file
21
21
Content:
22
22
23
23
1 . package <code >design_patterns</code > - design patterns
24
- * [ Builder] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Builder.kt)
25
- * [ Visitor] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Visitor.kt)
26
- * [ Command] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Command.kt)
27
- * [ Decorator] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Decorator.kt)
28
- * [ Facade] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Facade.kt)
29
- * [ Abstract Factory] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Abstract%20Factory.kt)
30
- * [ Factory Method] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Factory%20Method.kt)
31
- * [ Fluent Interface] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Fluent%20Interface%20Pattern.kt)
32
- * [ Monostate] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Monostate.kt)
33
- * [ Singleton] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Singleton.kt)
34
- * [ Strategy] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Strategy.kt)
35
- * [ Observer] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Observer.kt)
36
- * [ Dependency Injection] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Dependency%20%20Injection.kt)
37
- * [ Adapter] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/design_patterns/Adapter.kt)
24
+ * [ Builder] ( /src/main/kotlin/design_patterns/Builder.kt )
25
+ * [ Visitor] ( /src/main/kotlin/design_patterns/Visitor.kt )
26
+ * [ Command] ( /src/main/kotlin/design_patterns/Command.kt )
27
+ * [ Decorator] ( /src/main/kotlin/design_patterns/Decorator.kt )
28
+ * [ Facade] ( /src/main/kotlin/design_patterns/Facade.kt )
29
+ * [ Abstract Factory] ( /src/main/kotlin/design_patterns/Abstract%20Factory.kt )
30
+ * [ Factory Method] ( /src/main/kotlin/design_patterns/Factory%20Method.kt )
31
+ * [ Fluent Interface] ( /src/main/kotlin/design_patterns/Fluent%20Interface%20Pattern.kt )
32
+ * [ Monostate] ( /src/main/kotlin/design_patterns/Monostate.kt )
33
+ * [ Singleton] ( /src/main/kotlin/design_patterns/Singleton.kt )
34
+ * [ Strategy] ( /src/main/kotlin/design_patterns/Strategy.kt )
35
+ * [ Observer] ( /src/main/kotlin/design_patterns/Observer.kt )
36
+ * [ Dependency Injection] ( /src/main/kotlin/design_patterns/Dependency%20%20Injection.kt )
37
+ * [ Adapter] ( /src/main/kotlin/design_patterns/Adapter.kt )
38
38
39
39
2 . package <code >structures</code > - data structure
40
- * [ Binary tree] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/structures/BinaryTree.kt)
41
- * [ Stack] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/structures/Stack.kt)
42
- * [ Queue] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/structures/Queue.kt)
43
- * [ Graph] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/structures/Graph.kt)
44
- * [ Dynamic array] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/structures/DynamicArray.kt)
45
- * [ Linked list] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/structures/LinkedList.kt)
46
- * [ Min-heap] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/structures/MinHeap.kt)
47
- * [ Max-heap] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/structures/MaxHeap.kt)
40
+ * [ Binary tree] ( /src/main/kotlin/structures/BinaryTree.kt )
41
+ * [ Stack] ( /src/main/kotlin/structures/Stack.kt )
42
+ * [ Queue] ( /src/main/kotlin/structures/Queue.kt )
43
+ * [ Graph] ( /src/main/kotlin/structures/Graph.kt )
44
+ * [ Dynamic array] ( /src/main/kotlin/structures/DynamicArray.kt )
45
+ * [ Linked list] ( /src/main/kotlin/structures/LinkedList.kt )
46
+ * [ Min-heap] ( /src/main/kotlin/structures/MinHeap.kt )
47
+ * [ Max-heap] ( /src/main/kotlin/structures/MaxHeap.kt )
48
48
49
49
3 . package <code >sorting</code > - sorting algorithms
50
- * [ Bubble sort] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/sorting/BubbleSort.kt)
51
- * [ Bubble sort (improved)] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/sorting/BubbleSortImproved.kt)
52
- * [ Insertion sort] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/sorting/InsertionSort.kt)
53
- * [ Merge sort] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/sorting/MergeSort.kt)
54
- * [ Quick sort] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/sorting/QuickSort.kt)
55
- * [ Selection sort] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/sorting/SelectionSort.kt)
56
- * [ Radix sort] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/sorting/RadixSort.kt)
50
+ * [ Bubble sort] ( /src/main/kotlin/sorting/BubbleSort.kt )
51
+ * [ Bubble sort (improved)] ( /src/main/kotlin/sorting/BubbleSortImproved.kt )
52
+ * [ Insertion sort] ( /src/main/kotlin/sorting/InsertionSort.kt )
53
+ * [ Merge sort] ( /src/main/kotlin/sorting/MergeSort.kt )
54
+ * [ Quick sort] ( /src/main/kotlin/sorting/QuickSort.kt )
55
+ * [ Selection sort] ( /src/main/kotlin/sorting/SelectionSort.kt )
56
+ * [ Radix sort] ( /src/main/kotlin/sorting/RadixSort.kt )
57
57
58
58
4 . package <code >search</code > - search algorithms
59
- * [ Binary search] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/search/BinarySearch.kt)
60
- * [ Binary search (recursive)] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/search/BinarySearchRecursive.kt)
61
- * [ Linear search] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/search/LinearSearch.kt)
59
+ * [ Binary search] ( /src/main/kotlin/search/BinarySearch.kt )
60
+ * [ Binary search (recursive)] ( /src/main/kotlin/search/BinarySearchRecursive.kt )
61
+ * [ Linear search] ( /src/main/kotlin/search/LinearSearch.kt )
62
62
63
63
5 . package <code >other</code > - other algorithms
64
- * [ Factorial] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/Factorial.kt)
65
- * [ Knut Morris Pratt's Algorithm for finding a substring] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/KnuthMorrisPratt.kt)
66
- * [ Levenshtein distance] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/LevensteinLength.kt)
67
- * [ Palindrome] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/Palindrome.kt)
68
- * [ Euclid's algorithm] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/Euclid.kt)
69
- * [ FizzBuzz] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/FizzBuzz.kt)
70
- * [ Reverse Array] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/ReverseArray.kt)
71
- * [ Sieve of Eratosthenes] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/SieveOfEratosthenes.kt)
72
- * [ Finding the minimum] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/Max.kt)
73
- * [ Finding the maximum] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/Min.kt)
74
- * [ The square root of a number] ( https://github.com/KiberneticWorm/Kotlin-Algorithms-and-Design-Patterns/blob/master /src/main/kotlin/other/Sqrt.kt)
64
+ * [ Factorial] ( /src/main/kotlin/other/Factorial.kt )
65
+ * [ Knut Morris Pratt's Algorithm for finding a substring] ( /src/main/kotlin/other/KnuthMorrisPratt.kt )
66
+ * [ Levenshtein distance] ( /src/main/kotlin/other/LevensteinLength.kt )
67
+ * [ Palindrome] ( /src/main/kotlin/other/Palindrome.kt )
68
+ * [ Euclid's algorithm] ( /src/main/kotlin/other/Euclid.kt )
69
+ * [ FizzBuzz] ( /src/main/kotlin/other/FizzBuzz.kt )
70
+ * [ Reverse Array] ( /src/main/kotlin/other/ReverseArray.kt )
71
+ * [ Sieve of Eratosthenes] ( /src/main/kotlin/other/SieveOfEratosthenes.kt )
72
+ * [ Finding the minimum] ( /src/main/kotlin/other/Max.kt )
73
+ * [ Finding the maximum] ( /src/main/kotlin/other/Min.kt )
74
+ * [ The square root of a number] ( /src/main/kotlin/other/Sqrt.kt )
75
75
76
76
## Your wishes and ideas
77
77
0 commit comments