How to implement incremental search on a list

前端 未结 7 2089
无人共我
无人共我 2021-02-06 04:52

I want to implement incremental search on a list of strings. Consider I have an array containing which contains the strings store,state,stamp,crawl,crow. My application has a te

7条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 05:22

    A trie data structure would scale well, if your list can grow to significant length (more than hundreds of entries). Check out e.g. this example implementation.

提交回复
热议问题