Explore 10 different ways to solve the Leap exercise on Exercism with Jeremy and Erik.
Created as part of #48in24, we dig into 10 different approaches the community take to this simple exercise, including Python, Clojure, Prolog and MIPS Assembly.
Solve the exercise at: https://exercism.org/exercises/leap
Join #48in24 at: https://exercism.org/challenges/48in24
Timestamps:
00:00:00 Introduction
00:00:50 "Cheaty" solution (C#)
00:04:08 "Hacky" solution (Python)
00:05:50 Boolean logic approach (JavaScript)
00:10:30 Ternary approach (C)
00:14:13 Ternary approach (Kotlin)
00:14:41 "divisible-by" approach (Clojure)
00:20:40 Pattern matching approach (Rust)
00:26:00 Guards approach (Elixir)
00:29:56 Prolog
00:34:26 MIPS Assembly
00:41:49 Overkill approach (Crystal)
00:44:04 Summary