Skip to content

πŸš€ Kotlin DSA & Problem Solving – A collection of data structures, algorithms, and coding solutions from LeetCode & HackerRank, all implemented in Kotlin. Perfect for mastering CS fundamentals and prepping for tech interviews! 🎯

Notifications You must be signed in to change notification settings

erenalpaslan/data-structures-and-algorithm-kotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Data Structures and Algorithms Notes for Kotlin

A comprehensive collection of data structures and algorithms implementations and solutions written in Kotlin. This repository contains solutions to coding interview problems from various platforms including LeetCode and HackerRank, organized by topic and difficulty.

πŸ“– Project Overview

This project serves as a learning resource and reference guide for data structures and algorithms concepts using Kotlin. It includes:

  • Algorithm implementations with detailed explanations
  • Coding interview problem solutions from popular platforms
  • Educational notes and documentation for key concepts
  • Well-organized structure by topic and problem source

πŸ—οΈ Project Structure

src/main/kotlin/
β”œβ”€β”€ Main.kt                     # Application entry point
β”œβ”€β”€ array/                      # Array data structure and algorithms
β”‚   β”œβ”€β”€ ARRAY.md               # Comprehensive array concepts guide
β”‚   └── leetcode/              # LeetCode array problems
β”œβ”€β”€ hackerrank/                # HackerRank problem solutions
β”‚   β”œβ”€β”€ arrays/                # Array problems
β”‚   β”œβ”€β”€ dictionariesandhashmaps/ # Hash table problems
β”‚   β”œβ”€β”€ gettingstarted/        # Beginner problems
β”‚   β”œβ”€β”€ sorting/               # Sorting algorithms
β”‚   β”œβ”€β”€ stringmanipulation/    # String problems
β”‚   └── warmup/                # Warm-up problems
└── leetcode/                  # LeetCode problem solutions
    β”œβ”€β”€ arrays/                # Array problems
    β”œβ”€β”€ hashmapset/            # HashMap and HashSet problems
    β”œβ”€β”€ prefixsum/             # Prefix sum technique
    β”œβ”€β”€ slidingwindow/         # Sliding window technique
    └── twopointers/           # Two pointers technique

🎯 Topics Covered

Data Structures

  • Arrays - Operations, techniques, and common patterns
  • Hash Tables - HashMaps, HashSets, and applications
  • Strings - Manipulation and pattern matching

Algorithms & Techniques

  • Sorting - Various sorting algorithms and applications
  • Two Pointers - Efficient array/string traversal
  • Sliding Window - Subarray/substring optimization
  • Prefix Sum - Efficient range sum queries
  • Binary Search - Search in sorted arrays

Problem Sources

  • LeetCode - Popular coding interview problems
  • HackerRank - Programming challenges and contests

πŸš€ Getting Started

Prerequisites

  • JDK 8 or higher
  • Gradle (included via Gradle Wrapper)

Setup

  1. Clone the repository:

    git clone https://github.com/erenalpaslan/data-structures-and-algorithm-kotlin.git
    cd data-structures-and-algorithm-kotlin
  2. Build the project:

    ./gradlew build
  3. Run the application:

    ./gradlew run

Running Tests

./gradlew test

πŸ“š Learning Resources

Each topic includes:

  • Theoretical explanations with time/space complexity analysis
  • Code implementations with detailed comments
  • Example problems and their solutions
  • Common patterns and techniques

For detailed array concepts and techniques, see ARRAY.md.

πŸ› οΈ Technologies Used

  • Kotlin 1.9.24 - Primary programming language
  • Gradle - Build automation and dependency management
  • JUnit - Unit testing framework

🀝 Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for:

  • Bug fixes
  • New algorithm implementations
  • Additional problem solutions
  • Documentation improvements

πŸ“ Notes

This project is designed for educational purposes and coding interview preparation. Each solution includes:

  • Time and space complexity analysis
  • Multiple approaches where applicable
  • Edge case handling
  • Clean, readable code with comments

πŸ“„ License

This project is open source and available under the MIT License.


Happy Coding! πŸŽ‰

About

πŸš€ Kotlin DSA & Problem Solving – A collection of data structures, algorithms, and coding solutions from LeetCode & HackerRank, all implemented in Kotlin. Perfect for mastering CS fundamentals and prepping for tech interviews! 🎯

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy