Skip to content

cbangera2/TwoSumZoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Two Sum Zoo

Two sum in every language

Language checklist

Completed:

TODO:

  • Crystal
  • Elixir
  • Fortran
  • F#
  • Haskell
  • Julia
  • Lua
  • Nim
  • OCaml
  • PHP
  • R
  • Ruby
  • Rust
  • Scala
  • TypeScript

Run the whole suite:

./scripts/run_all.sh

Add a new language:

  1. Drop your source under a new folder (keep the pattern <lang>/...).
  2. Implement the optimal $O(n)$ hash-map Two Sum and print <Language>: OK after self-checks.
  3. Wire the build/run commands into scripts/run_all.sh.
  4. Add a job for it in .github/workflows/ci.yml so CI runs it (mirror the simple pattern used by the others).
  5. Make sure the GitHub Action still passes.

About

Two Sum in every language

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors