ErrorGolf technical assessment platform for coding tests and programming challenges across 168 languages including Python, JavaScript, Java, C++, Rust, Go, Haskell, Assembly, SQL, TypeScript, C#, Ruby, PHP, Swift, Kotlin, Scala, Clojure, Erlang, Elixir, F#, OCaml, Lisp, Scheme, Prolog, Perl, R, MATLAB, Fortran, COBOL, Ada, Pascal, Delphi, Visual Basic, PowerShell, Bash, Brainfuck, Malbolge, Whitespace, Befunge, INTERCAL, LOLCODE, Chef, Piet, Ook, HQ9+, Unlambda, FALSE, Thue. Mathematics problem solving, chemistry challenges, physics tests, human logic puzzles, lateral thinking assessment, creative problem solving, AI-proof challenges, technical interviews, developer screening, skills-based hiring, online coding platform, technical hiring platform.
Klingon Keyboard Malfunction Par 5 Question 4 intermediate Sheet 1750822302
Select This Deep Breath The Star Trek-obsessed system administrator configured all keyboards to Klingon after a Discovery marathon. Users can only input pagh, wa', cha', wej... The admin was last seen at a convention declaring "petaQ! English is for p'tahk!" He left behind only a note: "Qapla'! The Federation will never decode our superior mathematical prowess!" Your task: Convert Klingon number words to perform mathematical operations because apparently this is what your CS degree prepared you for.
Why You're Doing This You're building a parser for an artificial language with mathematical operations. It's localization gone completely off the rails. This tests string parsing, lookup tables, expression evaluation, and your ability to maintain dignity while implementing Klingon mathematics. The goal is SHORTEST CODE that can handle warrior mathematics without dishonoring your ancestors or your IDE.
Take the W ✓ Correctly translates Klingon numbers to integers ✓ Evaluates basic mathematical operations accurately ✓ Handles Klingon operation words without crashing Hard L ✗ Crashes on unknown Klingon words (dishonorable) ✗ Returns floating point when integers expected ✗ Confuses Klingon with Vulcan (cultural insensitivity) Edge Cases ⚠ Division by pagh (zero) - mathematically and culturally offensive ⚠ Numbers higher than basic Klingon vocabulary ⚠ Operations between traditional enemies (Federation vs Klingon mathematics) ⚠ Expressions in wrong word order (Klingon grammar matters) ⚠ Calculator displaying results in Federation Standard (potential betrayal) Human Programming Math Physics Chem
Input Format:
Klingon mathematical expression with basic operations Expected Output:
Integer result of the calculation Example:
wa' naDev cha' → 3 (wa'=1, naDev=+, cha'=2, so 1+2=3) Input Format:
function(klingon_expression_string) Expected Output:
integer_result Example:
klingonMath("wa' naDev cha'") → 3 Input Format:
K_expression with variables a, op, b Expected Output:
result = translate(a) operator translate(b) Example:
a=wa', op=naDev, b=cha' → result = 1 + 2 = 3 Input Format:
Linguistic momentum with mathematical transformation forces Expected Output:
Energy conservation during number translation Example:
E_klingon = wa'×momentum, transform_to_federation_units → E_result = 1×standard_units = integer_output Input Format:
Klingon linguistic compounds with mathematical reactions Expected Output:
Numerical products with cultural preservation Example:
wa' + translation_energy + cha' → mathematical_result → 3 + honor_maintained + Federation_compatibility Hints
💡 Klingon numbers: pagh=0, wa'=1, cha'=2, wej=3, loS=4, vagh=5 💡 Operations: naDev=+, woD=-, DIch=*, nugh=/ 💡 The apostrophe in wa' is critical for Klingon pronunciation and parsing errorgolf ErrorGolf is a standalone product of AC DEV SERVICES, LLC in California, built as an entertaining and more creative alternative to conventional technical testing. For account and billing enquiries, contact [email protected] .
© $CURRENT_YEAR_OMFG AC Dev Services, LLC. All rights reserved. MongoDB/Gin/Svelte/Tailwind, if you're interested. 99 little bugs in the code. Take one down, patch it around, 117 little bugs in the code...