Giter Site home page Giter Site logo

leetcode-scala-3's Introduction

LeetCode-Scala-3 main status codecov

Solutions of selected LeetCode problems in Scala 3.

Goal

  • Learn Scala 3 :)
  • Practise Algorithm :)

Code

  • Try to be compact and readable at the same time
  • Try Scala 3 syntax and features but with less Scala specific libraries

Solutions

  • Solutions are organized into topics, following the same list as LeetCode
  • Topics are further divided into category based on use cases
  • Solutions in each Topic/Category are ordered by difficulty level
  • Solutions required explanation and attention are bold
Topic Category Problem List
Hashmap Check existence with O(1)
Discrete key/value container for further processing
Implementation and other usages
OrderedSet Get a key based on predefined order
A compact ordered container
LinkedList Basic operation
Additional operation
Use of linked list
Others
Two Pointers
Fast Slow Pointers
String
Tries
Number
Counting
Math
Bit
Array
Matrix
Prefix Sum
Stack
Queue
Sort
Bucket Sort
Recursion
Tree Tree Traversals
Other operations
Check Tree properties
Construction and Destruction of Tree
Binary Search Tree Check BST properties
Modify BST
Construct BST
Traversal of BST
Binary Search
DFS
BFS
Graph
Union Find
Heap
Back Tracking
Dynamic Programming
Greedy

leetcode-scala-3's People

Contributors

chuchunf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.