about summary refs log tree commit diff stats
path: root/lib/RangeSearch.rakumod
Commit message (Collapse)AuthorAgeFilesLines
* Re-implement octans, move subroutines to respective modulesAndinus2021-01-191-0/+70
Initially it went over the list of words & checked if they exist in the grid. This was very slow. Currently it walks the grid & checks if the current string exist in the dictionary. This is faster for these reasons: • The dictionary is sorted, we perform binary range search on the dictionary to return the list of all words that start with specific string. • Starting positions are limited. If the dictionary wasn't sorted then this probably would've been