Skip to content

Archive of Leetcode and interview problems I have answered

Notifications You must be signed in to change notification settings

dan-frank/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Questions

Personal archive for answered, unanswered, and failed leetcode and interview questions that I have attempted or want to attempt.

Usage

The best method to use this archive is with the archive section. Here you can find quick links to my solutions and to the problem itself. I have included the name of the Leetcode problem so you can easily find it with a search in your browser of choice.

If you hate documentation, you can also navigate to src/main/scala and find all of the solutions.

I have written test cases for (most of) the solutions, and these can be found under src/test/scala.

The majority of solutions have been resolved with Scala, managed and tested with sbt (which also handles Java solutions). However, a few other languages can be found that cannot be handled by sbt; these will need to be run seperately, likely inside the Leetcode editor.

As the archive has been setup with sbt, you can use sbt commands. Compile the code with sbt compile, test with sbt test, and sbt console will start a Scala 3 REPL.

Due to the nature of this project there are no main methods for running the code, and as such sbt run won't produce any meaningful results. If you want to extend this project yourself, I recommend introducing and running more test cases.

Archive Key

🗝️ Description Completed
Completed 22
🚧 In Progress 1
Failed 0
🟢 Easy Question 18
🟠 Medium Question 2
🔴 Hard Question 0
🗣️ Interview Question 3

Archive

ID Status Name Rank File Language Attempted Completed
50 Pow(x, n) 🟠 View Scala 2022-11-07 2022-11-07
69 Sqrt(x) 🟢 View Scala 2022-10-31 2022-10-31
66 Plus One 🟢 View Scala 2022-10-26 2022-10-26
26 Remove Duplicates from Sorted Array 🟢 View Scala 2022-10-24 2022-10-25
21 Merge Two Sorted Lists 🟢 View Scala 2022-10-24 2022-10-24
20 Valid Parentheses 🟢 View Scala 2022-10-23 2022-10-24
14 Longest Common Prefix 🟢 View Scala 2022-10-23 2022-10-23
13 Roman to Integer 🟢 View Scala 2022-10-22 2022-10-22
136 Single Number 🟢 View Scala 2022-10-22 2022-10-22
1 Two Sum 🟢 View Scala 2022-10-21 2022-10-21
PDF ✅️ User Notifications 🗣️ View Scala 2022-07-10 2022-07-10
PDF ✅️ Concept of Availability 🗣️ View Scala 2022-07-10 2022-07-10
N/A ✅️ Find Longest Subarray by Sum 🗣️ View C 2021 2021
1534 Count Good Triplets 🟢 View Java 2020-12-13 2020-12-18
2 Add Two Numbers 🟠 View Java 2020-12-11 2020-12-11
27 🚧 Remove Element 🟢
283 Move Zeroes 🟢 View Java 2020-08-29 2020-08-29
326 Power of Three 🟢 View Java 2020-03-07 2020-03-07
344 Reverse String 🟢 View Java 2020-03-06 2020-03-06
350 Intersection of Two Arrays II 🟢 View Java 2020-03-06 2020-03-06
371 ✅️ Sum of Two Integers 🟢 View Scala 2020-03-06 2022-10-21
387 First Unique Character in a String 🟢 View Java 2020-03-05 2020-03-05
412 Fizz Buzz 🟢 View Java 2020-03-05 2020-03-05

All questions have been answered by me and me alone; shared to be used for referance.

About

Archive of Leetcode and interview problems I have answered

Topics

Resources

Stars

Watchers

Forks