Odin SolutionsOdin Solutions

🕵️

The Secret Order

Week 3, 2026

All Solutions

Word by word, rune by rune | greenya | Odin Solutions

// - use "odin run ." to run the code (append " >result.txt" for convenience) // - words.txt should be nearby with the input data package main import "core:fmt" import "core:strings" words_txt_bytes := #load("words.txt") main :: proc () { words_txt_trimmed := strings.trim(string(words_txt_bytes), "\n\r\t ") words := strings.split_lines(words_txt_trimmed) valid: int next: for w in words { if len(w) < 2 do continue for i in 1..<len(w) do if int(w[i-1]) > int(w[i]) do continue next valid += 1 fmt.println(w) } fmt.println("--------------------------") fmt.println("total words checked:", len(words)) fmt.println("total valid words :", valid) }