This repo contains my solutions to some data structures and algorithms problems on leetcode.

Overview

DSA Playground

This repository contains solutions to dsa problems in kotlin.


NOTE:

This file will get long, please consider using <Ctrl>F


DSA With Kunal - Assignments

Check the lectures here

Array

# Problem Difficulty Solution
1 Build Array from Permutation Easy Solution
2 Concatenation of Array Easy Solution
3 Running Sum of 1d Array Easy Solution
4 Richest Customer Wealth Easy Solution
5 Shuffle the Array Easy Solution
6 Kids With the Greatest Number of Candies Easy Solution
7 Number of Good Pairs Easy Solution
8 How Many Numbers Are Smaller Than the Current Number Easy Solution
9 Create Target Array in the Given Order Easy SOlution
10 Check if the Sentence Is Pangram Easy Solution
11 Count Items Matching a Rule Easy SOlution
12 Find the Highest Altitude Easy Solution
13 Flipping an Image Easy Solution
14 Cells with Odd Values in a Matrix Easy Solution
15 Matrix Diagonal Sum Easy SOlution
16 Find Numbers with Even Number of Digits Easy Solution
17 Transpose Matrix Easy Solution
18 Add to Array-Form of Integer Easy Solution
19 Maximum Population Year Easy Solution
20 Determine Whether Matrix Can Be Obtained By Rotation Easy Solution
21 Two Sum Easy Solution
22 Find N Unique Integers Sum up to Zero Easy Solution
23 Lucky Number In a Matrix Easy Solution
24 Maximum Subarray Easy Solution
25 Reshape the Matrix Easy Solution
26 Plus One Easy Solution
27 Remove Duplicates from Sorted Array Easy Solution
28 Spiral Matrix Medium Solution
29 Spiral Matrix II Medium Solution
30 Spiral Matrix III Medium Solution
31 Set Matrix Zeroes Medium Solution
32 Product of Array Except Self Medium Solution
33 Find First and Last Position of Element in Sorted Array Medium Solution
34 Jump Game Medium Solution
35 Rotate Array Medium Solution
36 Sort Colors Medium Solution

Searching

# Problem Difficulty Solution
1 Square Root Easy Solution
2 Guess Number Higher or Lower Easy Solution
3 First Bad Version Easy Solution
4 Two Sum II - Input array is sorted Easy Solution
5 Valid Perfect Square Easy Solution
6 Arranging Coins Easy Solution
7 Find Smallest Letter Greater Than Target Easy Solution
8 Kth Missing Positive Number Easy Solution
9 Search Insert Position Easy Solution
10 Peak Index in a Mountain Array Easy Solution
11 Count Negative Numbers in a Sorted Matrix Easy Solution
12 Intersection of Two Arrays Easy Solution
13 Intersection of Two Arrays II Easy Solution
14 Fair Candy Swap Easy Solution
15 Check If N and Its Double Exist Easy Solution
16 Special Array With X Elements Greater Than or Equal X Easy Solution
17 Single Element in a Sorted Array Medium Solution
18 Search in Rotated Sorted Array Medium Solution
19 Search in Rotated Sorted Array II Medium Solution
20 Find Minimum in Rotated Sorted Array Medium Solution
21 Maximum Value at a Given Index in a Bounded Array Medium Solution
22 Koko eating bananas Medium Solution
23 Minimum Absolute Sum Difference Medium Solution
24 Search a 2D Matrix Medium Solution

Sort

# Problem Difficulty Solution
1 Missing Number Easy Solution
2 Find All Numbers Disappeared in an Array Easy Solution
3 Find the Duplicate Number Medium Solution
4 Find All Duplicates in an Array Medium Solution
5 Set Mismatch Medium Solution
6 First Missing Positive Hard Solution
7 Merge Sorted Array Easy Solution
8 Majority Element Easy Solution
9 Contains Duplicate Easy Solution
10 Third Maximum Number Easy Solution
11 Assign Cookies Easy Solution
12 Array Partition I Easy Solution
13 Maximum Product of Three Numbers Easy Solution
14 Sort Array By Parity Easy Solution
15 Sort Array By Parity II Easy Solution
16 Largest Perimeter Triangle Easy Solution
17 Squares of a Sorted Array Easy Solution
18 Matrix Cells in Distance Order Easy Solution
19 Height Checker Easy Solution
20 Relative Sort Array Easy Solution
21 Minimum Absolute Difference Easy Solution
22 Rank Transform of an Array Easy Solution
23 Sort Integers by The Number of 1 Bits Easy Solution
24 How Many Numbers Are Smaller Than the Current Number Easy Solution
25 Maximum Product of Two Elements in an Array Easy Solution

Random Leetcode

Problem Solution Comments
Median of Two Sorted Arrays Solution
Add Two Numbers Solution Improvement Needed
Split Array Largest Sum Solution
You might also like...
Advent of Code 2021 in Kotlin, solved by myself. Focus on code readability. With GitHub Actions all puzzles are executed and their solutions printed

Advent of Code 2021 in Kotlin Focus on Code Readability. With CI Solution Printing. Welcome to the Advent of Code1 Kotlin project created by michaeltr

DS-for-Kotlin - Some classic data sturctures write in kotlin for fun

DS-for-Kotlin Just write some classic data structure by kotlin during my leisure

Kotlin microservices with REST, and gRPC using BFF pattern. This repository contains backend services. Everything is dockerized and ready to
Kotlin microservices with REST, and gRPC using BFF pattern. This repository contains backend services. Everything is dockerized and ready to "Go" actually "Kotlin" :-)

Microservices Kotlin gRPC Deployed in EC2, Check it out! This repo contains microservices written in Kotlin with BFF pattern for performing CRUD opera

In this Repo i create public apis to serve apps, like muslim apps using Spring, kotlin, and microservices

spring-freelance-apis-kotlin In this Repo i create public apis to serve apps, like muslim apps using Spring, kotlin, and microservices This repo for l

It is a project that contains lessons and examples about Kotlin programming language. 🇰
It is a project that contains lessons and examples about Kotlin programming language. 🇰

Kotlin Tutorials What is Kotlin? I added the platforms it supports and great resources. You can access the article from the link below: https://medium

This repository contains RabbitMQ Protobuf starters with its usage samples for spring-rabbit and spring-cloud-starter-stream-rabbit modules

This repository contains RabbitMQ Protobuf starters with its usage samples for spring-rabbit and spring-cloud-starter-stream-rabbit modules

The app contains an order flow for cupcakes with options for quantity, flavor, and pickup date

Cupcake app This app contains an order flow for cupcakes with options for quantity, flavor, and pickup date. The order details get displayed on an ord

A simple android application for IQ tests, contains 40 questions and issues.
A simple android application for IQ tests, contains 40 questions and issues.

IQ-Android A simple android application for IQ tests, contains 40 questions and issues. Compatible with API Level 14 and higher Support only arabic la

Just a POC repo for using Kotlin continuations

This repository This is for now just a POC repo for using Kotlin continuations, but i plan on using this to make a general library for kotlin integrat

Owner
Hardik Sachan
Self-taught programmer · Open-source enthusiast · Android · Kotlin
Hardik Sachan
Repo: Programming problems with solutions in Kotlin to help avid Kotlin learners to get a strong hold on Kotlin programming.

Kotlin_practice_problems Repo: Programming problems with solutions in Kotlin to help avid Kotlin learners to get a strong hold on Kotlin programming.

Aman 0 Oct 14, 2021
Solutions to Hackerrank and CoderByte practice problems

Solutions to Hackerrank and CoderByte practice problems This repository contains solutions to CoderByte and Hackerrank practice problems with Kotlin.

Mert Toptas 2 Jul 5, 2022
Data structures in kotlin that maintain order

Ordered Data Structures I came from C++ and fell in love with kotlin. I used the C++ stdlib a lot. I have really been wanted to reach for map and unor

Kyle McBurnett 0 Nov 1, 2021
📌This repo contains the kotlin implementation of TensorflowLite Example Android Apps🚀

TensorflowLite Examples Kotlin This repo contains the kotlin implementation of TensorflowLite Example Apps here, which are mostly implemented in java

Sunit Roy 28 Dec 13, 2022
Kotlin Algorithms and Design Patterns

Kotlin Algorithms and Design Patterns This repository lists the most common algorithms, data structures, and design patterns written in the Kotlin pro

Dmitry 546 Jan 2, 2023
Bring together all of the remarkable Computer Graphics Algorithms in one place 🚀

Compose Computer Graphics Playground ?? "There was an idea to bring together all of the remarkable Computer Graphics Algorithms in one place. And keep

Jaseemakhtar 162 Dec 27, 2022
Collection of various algorithms in mathematics, computer science etc implemented in Kotlin for educational purposes.

The Kotlin Algorithms Implementation of different algorithms and data structures using Kotlin lang Overview The repository is a collection of open-sou

Oleksii Shtanko 9 Aug 1, 2022
Kotlin Examples Problems

Kotlin Examples Problems --->>> Repo: Getting Started Kotlin <<<--- --->>> Repo Kotlin Koans <<<--- --->>> Repo: GameBoy Emulator Enviroment <<<--- --

Victor Bolinches 22 Oct 3, 2022
Ninety-Nine Problems in Kotlin

Ninety-Nine Kotlin Problems Table of Contents Introduction Lists Arithmetic Logic and Codes Binary Trees Multiway Trees Graphs Miscellaneous Introduct

Dmitry Kandalov 618 Nov 30, 2022