Skip to content

ashtanko/the-algorithms

Repository files navigation

The Kotlin Algorithms

Implementation of different algorithms and data structures using Kotlin lang

Build

codebeat badge CodeFactor Maintainability Codacy Badge Hits-of-Code License: MIT

FOSSA Status CodeStyle Kotlin Version

codacy test coverage codeclimate test coverage codecov test coverage Coverage Status

Overview

The repository is a collection of open-source implementations of a variety of algorithms implemented in Kotlin and licensed under MIT License. The implementations and their associated documentations are meant to provide a learning resource for educators and students. Hence, one may find more than one implementation for the same objective but using different algorithm strategies and optimizations.

Features

  • The repository provides implementations of various algorithms in one of the most fundamental general purpose languages
  • Well documented source code with detailed explanations provide a valuable resource for educators and students alike.
  • Source codes are compiled and tested
  • Self-checks within programs ensure correct implementations with confidence.
  • Modular implementations and OpenSource licensing enable the functions to be utilized conveniently in other applications.
  • Makefile
  • JUnit 5
  • Code checks (detekt, ktlint, spotless)
  • CI

detekt

Metrics

  • 255 number of properties

  • 219 number of functions

  • 136 number of classes

  • 8 number of packages

  • 81 number of kt files

Complexity Report

  • 6,782 lines of code (loc)

  • 3,511 source lines of code (sloc)

  • 2,669 logical lines of code (lloc)

  • 2,728 comment lines of code (cloc)

  • 405 cyclomatic complexity (mcc)

  • 205 cognitive complexity

  • 0 number of total code smells

  • 77% comment source ratio

  • 151 mcc per 1,000 lloc

  • 0 code smells per 1,000 lloc

Findings (0)

generated with detekt version 1.23.5 on 2024-04-02 23:34:50 UTC