HF RL Explorer

autocomplete: edge case

autocomplete: edge case: a task in smol-software-harbor (Harbor dataset). withPrefix() in lib/trie.js has two edge-case bugs: the empty prefix should return all words (sorted), and the prefix must be case-insensitive like insert() and has() ( withPrefix('CA') equals withPrefix('ca') ; results are…

The task

`withPrefix()` in `lib/trie.js` has two edge-case bugs: the empty prefix should return *all* words (sorted), and the prefix must be case-insensitive like `insert()` and `has()` (`withPrefix('CA')` equals `withPrefix('ca')`; results are lowercase). Fix it and run `node --test test/*.test.js`.

Part of efederici/smol-software-harbor.