Skip to content

Inverting a binary tree in (eventually) 30 programming languages. This'll get me through any interview!

Notifications You must be signed in to change notification settings

aziznal/inverted-binary-tree-in-30-programming-languages

Repository files navigation

Readme

On the night of the 25th of march, 2025, I challenged myself to explore a bunch of programming languages, inspired by a developer on youtube called tsoding (here's his challenge implementation).

The languages I aim to do are the following (in no particular order):

  1. Typescript
  2. Rust
  3. C
  4. C++
  5. D
  6. Go
  7. C#
  8. Lisp
  9. Lua
  10. Java
  11. Kotlin
  12. Haskell
  13. Python
  14. Php
  15. Perl
  16. Nim
  17. Zig
  18. Scala
  19. Groovy
  20. Dart
  21. Ocaml
  22. Pascal
  23. Julia
  24. Racket
  25. Ada
  26. Ruby
  27. Coffeescript
  28. Elixir
  29. Erlang
  30. Clojure
  31. Gleam
  32. Swift
  33. Prolog
  34. F#
  35. Elm
  36. Assembly

Running Things with Docker Containers

With 30+ languages comes 30+ potential headaches to set each up. I deal with that using docker.

Each solution has a dockerfile setting up a minimal environment for the given language.

The following commands are helpful:

# 1. builds an image
docker buildx build --load -t container-name .

# 2. runs shell inside a built image and mounts the current folder to it under /app
docker run -it -v "$(pwd)":/app container-name /bin/bash

About

Inverting a binary tree in (eventually) 30 programming languages. This'll get me through any interview!

Topics

Resources

Stars

Watchers

Forks