Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Coding in the AI era
/
Examples and counterexamples
A parser prompt gives examples for canonical digits but says nothing about surrounding wh…
from Examples and counterexamples
Node 24
intermediate
2 min
A parser prompt gives examples for canonical digits but says nothing about surrounding whitespace. What should happen before implementation?
Mark surrounding whitespace as unresolved and obtain a decision to trim, preserve, or reject it
Trim it because most users probably expect that behavior
Reject it because strict parsing is always safer
Let the generated tests choose whichever behavior the implementation already has
Check
Ask AI about this kata
Report an error
previous kata
The only example says stock 4 with reorderAt 8 returns reorder. Which case best rejects a…
Quiz
next kata
What decisions does the specified inventory rule print?
Predict the output
A new version is available
Reload