├── .github └── workflows │ ├── CI.yml │ └── directory_workflow.yml ├── .gitignore ├── DIRECTORY.md ├── LICENSE ├── README.md ├── Setup.hs ├── package.yaml ├── specs ├── SortSpecs │ ├── BubbleSortSpec.hs │ ├── HeapSortSpec.hs │ ├── InsertionSortSpec.hs │ ├── MergeSortSpec.hs │ ├── QuickSortSpec.hs │ ├── SelectionSortSpec.hs │ └── ShellSortSpec.hs └── Spec.hs ├── src ├── BinaryTree │ ├── BinarySearchTree.hs │ └── BinaryTree.hs ├── DataStructures │ └── MaxHeap.hs ├── Graph │ ├── Dfs.hs │ └── DirectedGraph.hs ├── HaskellAlgorithms.hs ├── Maths │ ├── Factorial.hs │ ├── Fibonacci.hs │ ├── GraphDist.hs │ ├── KadaneAlgorithm.hs │ └── Palindrome.hs ├── Misc │ ├── BinarySearch.hs │ ├── NQueens.hs │ ├── Powerset.hs │ └── TowersOfHanoi.hs ├── ProjectEuler │ ├── Problem1 │ │ └── Problem1.hs │ ├── Problem2 │ │ └── Problem2.hs │ ├── Problem3 │ │ └── Problem3.hs │ ├── Problem4 │ │ └── Problem4.hs │ ├── Problem5 │ │ └── Problem5.hs │ ├── Problem6 │ │ └── Problem6.hs │ └── Problem7 │ │ └── Problem7.hs ├── Robotics │ └── ComplementaryFilter │ │ ├── CompFilt.hs │ │ └── TestData.hs ├── Sorts │ ├── BubbleSort.hs │ ├── HeapSort.hs │ ├── InsertionSort.hs │ ├── MergeSort.hs │ ├── QuickSort.hs │ ├── SelectionSort.hs │ └── ShellSort.hs ├── SpecializedStructure │ └── MergeFindSet.hs └── Statistics │ ├── Center.hs │ └── Dispersion.hs ├── stack.yaml └── stack.yaml.lock /.github/workflows/CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/.github/workflows/CI.yml -------------------------------------------------------------------------------- /.github/workflows/directory_workflow.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/.github/workflows/directory_workflow.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/.gitignore -------------------------------------------------------------------------------- /DIRECTORY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/DIRECTORY.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/README.md -------------------------------------------------------------------------------- /Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /package.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/package.yaml -------------------------------------------------------------------------------- /specs/SortSpecs/BubbleSortSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/specs/SortSpecs/BubbleSortSpec.hs -------------------------------------------------------------------------------- /specs/SortSpecs/HeapSortSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/specs/SortSpecs/HeapSortSpec.hs -------------------------------------------------------------------------------- /specs/SortSpecs/InsertionSortSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/specs/SortSpecs/InsertionSortSpec.hs -------------------------------------------------------------------------------- /specs/SortSpecs/MergeSortSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/specs/SortSpecs/MergeSortSpec.hs -------------------------------------------------------------------------------- /specs/SortSpecs/QuickSortSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/specs/SortSpecs/QuickSortSpec.hs -------------------------------------------------------------------------------- /specs/SortSpecs/SelectionSortSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/specs/SortSpecs/SelectionSortSpec.hs -------------------------------------------------------------------------------- /specs/SortSpecs/ShellSortSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/specs/SortSpecs/ShellSortSpec.hs -------------------------------------------------------------------------------- /specs/Spec.hs: -------------------------------------------------------------------------------- 1 | {-# OPTIONS_GHC -F -pgmF hspec-discover #-} 2 | 3 | module Spec where 4 | -------------------------------------------------------------------------------- /src/BinaryTree/BinarySearchTree.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/BinaryTree/BinarySearchTree.hs -------------------------------------------------------------------------------- /src/BinaryTree/BinaryTree.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/BinaryTree/BinaryTree.hs -------------------------------------------------------------------------------- /src/DataStructures/MaxHeap.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/DataStructures/MaxHeap.hs -------------------------------------------------------------------------------- /src/Graph/Dfs.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Graph/Dfs.hs -------------------------------------------------------------------------------- /src/Graph/DirectedGraph.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Graph/DirectedGraph.hs -------------------------------------------------------------------------------- /src/HaskellAlgorithms.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/HaskellAlgorithms.hs -------------------------------------------------------------------------------- /src/Maths/Factorial.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Maths/Factorial.hs -------------------------------------------------------------------------------- /src/Maths/Fibonacci.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Maths/Fibonacci.hs -------------------------------------------------------------------------------- /src/Maths/GraphDist.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Maths/GraphDist.hs -------------------------------------------------------------------------------- /src/Maths/KadaneAlgorithm.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Maths/KadaneAlgorithm.hs -------------------------------------------------------------------------------- /src/Maths/Palindrome.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Maths/Palindrome.hs -------------------------------------------------------------------------------- /src/Misc/BinarySearch.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Misc/BinarySearch.hs -------------------------------------------------------------------------------- /src/Misc/NQueens.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Misc/NQueens.hs -------------------------------------------------------------------------------- /src/Misc/Powerset.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Misc/Powerset.hs -------------------------------------------------------------------------------- /src/Misc/TowersOfHanoi.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Misc/TowersOfHanoi.hs -------------------------------------------------------------------------------- /src/ProjectEuler/Problem1/Problem1.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/ProjectEuler/Problem1/Problem1.hs -------------------------------------------------------------------------------- /src/ProjectEuler/Problem2/Problem2.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/ProjectEuler/Problem2/Problem2.hs -------------------------------------------------------------------------------- /src/ProjectEuler/Problem3/Problem3.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/ProjectEuler/Problem3/Problem3.hs -------------------------------------------------------------------------------- /src/ProjectEuler/Problem4/Problem4.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/ProjectEuler/Problem4/Problem4.hs -------------------------------------------------------------------------------- /src/ProjectEuler/Problem5/Problem5.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/ProjectEuler/Problem5/Problem5.hs -------------------------------------------------------------------------------- /src/ProjectEuler/Problem6/Problem6.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/ProjectEuler/Problem6/Problem6.hs -------------------------------------------------------------------------------- /src/ProjectEuler/Problem7/Problem7.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/ProjectEuler/Problem7/Problem7.hs -------------------------------------------------------------------------------- /src/Robotics/ComplementaryFilter/CompFilt.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Robotics/ComplementaryFilter/CompFilt.hs -------------------------------------------------------------------------------- /src/Robotics/ComplementaryFilter/TestData.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Robotics/ComplementaryFilter/TestData.hs -------------------------------------------------------------------------------- /src/Sorts/BubbleSort.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Sorts/BubbleSort.hs -------------------------------------------------------------------------------- /src/Sorts/HeapSort.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Sorts/HeapSort.hs -------------------------------------------------------------------------------- /src/Sorts/InsertionSort.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Sorts/InsertionSort.hs -------------------------------------------------------------------------------- /src/Sorts/MergeSort.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Sorts/MergeSort.hs -------------------------------------------------------------------------------- /src/Sorts/QuickSort.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Sorts/QuickSort.hs -------------------------------------------------------------------------------- /src/Sorts/SelectionSort.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Sorts/SelectionSort.hs -------------------------------------------------------------------------------- /src/Sorts/ShellSort.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Sorts/ShellSort.hs -------------------------------------------------------------------------------- /src/SpecializedStructure/MergeFindSet.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/SpecializedStructure/MergeFindSet.hs -------------------------------------------------------------------------------- /src/Statistics/Center.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Statistics/Center.hs -------------------------------------------------------------------------------- /src/Statistics/Dispersion.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/src/Statistics/Dispersion.hs -------------------------------------------------------------------------------- /stack.yaml: -------------------------------------------------------------------------------- 1 | resolver: lts-16.17 2 | 3 | packages: 4 | - . 5 | -------------------------------------------------------------------------------- /stack.yaml.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheAlgorithms/Haskell/HEAD/stack.yaml.lock --------------------------------------------------------------------------------