Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Odin Coding Challenges

This contains solutions to selected coding challenges from codingchallenges.fyi, implemented in the Odin programming language.

The goal is to learn Odin's unique features, such as its type system, explicit error handling, and low-level memory model while solving interesting problems.

Structure

Each challenge is organized in its own directory.

Challenges

  • wc — Unix wc tool: count lines, words, characters, and bytes
  • json-parser — JSON parser with span-based error reporting

How to Run

You'll need Odin installed. If you use Nix, a flake.nix is provided with Odin and the OLS language server. With direnv the environment is activated automatically when entering the directory — otherwise run nix develop manually.

To run a challenge:

cd <challenge-directory>
odin run . -- <args>

To run tests:

odin test <challenge-directory>/tests

About

Odin Coding Challenges

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages