Frontend Tech Lead, 15+ years. I structure large React/TypeScript monorepos so many teams can ship fast. Building IsoLoop, an open-source event-loop isolation runtime for web apps.
Frontend Tech Lead, 15+ years. I structure large React/TypeScript monorepos so many teams can ship fast. Building IsoLoop, an open-source event-loop isolation runtime for web apps.
Scala
I've always appreciated Scala solutions for their mixed-notation to function-call chaining, it's truly bizarre. 😲
Here is a Python one-liner
Javascript solution
Nice! Here's my implementation:
Very nice, I wasn't aware of the
c.charCodeAt(0) - 96rule, didn't work with chars very much in all these years to be honest.It only works with lowercase a to z, because UTF-16 represents them as contiguous code points, starting at 97.
Elixir
C++ solution using simple for-loop
Java Streams
Go, single-pass
Rust: