APB9785
Elixir and Erlang added to Leetcode
As far as I know, there hasn’t been any official announcement of this, but over the past week or so, Leetcode.com has been rolling out support for Elixir, Erlang, and Racket. At this point almost all of the popular questions accept Elixir solutions. A couple things I’ve noticed:
- The editor needs some fixing in Elixir mode - the autoindentation seems especially broken, inserting tons of extra whitespace
- For the linked list questions, custom
ListNodestructs are used, instead of standard Elixir Lists.
I’m wondering what others in the community think about this. Have you ever had to solve Leetcode problems for an interview? Do you think interviewers will start using Leetcode for Elixir positions?
Most Liked
APB9785
I recommend trying Advent of Code with Elixir (or other FP language)
APB9785
Exercism is great - imo this is the best place to start. It ensures that you learn not only the Elixir language but also Functional Programming concepts which are especially important if you are coming from OOP. The best part of Exercism is that you get real code review from the mentors on each exercise.
Advent of Code is a great place to sharpen your skills after you’ve got the fundamentals under your belt. These will really push the boundaries of your Elixir understanding. Finishing all 25 levels is quite an accomplishment.
Honorable mention for Codewars, but it’s not really on the same level as the aforementioned duo. I guess leetcode is in the same boat now too, but I haven’t tried it myself.
Aetherus
Many questions that require mutation are extremely hard to solve in Erlang/Elixir (because in many cases you need to use some sort of a zipper).
Questions involving backtracking are very easy to implement in Erlang/Elixir due to immutability and the underlying optimization toward immutable data structures, but dynamic programming questions are usually harder to solve.
There’s no stack overflow in Erlang/Elixir, even for very deep body recursions.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








