Ruixiang's blog

work harder, study better, do faster, become stronger

0%

Problem:

Implement a trie with insert, search, and startsWith methods.

Example:

1
2
3
4
5
6
7
8
Trie trie = new Trie();

trie.insert("apple");
trie.search("apple"); // returns true
trie.search("app"); // returns false
trie.startsWith("app"); // returns true
trie.insert("app");
trie.search("app"); // returns true

Methods & Solutions:

Read more »

问题:

使用 hexo + next-theme + Github Page搭建博客在收尾阶段碰到一点小问题,菜单栏的TagsCategories 链接无法正常显示,而是直接跳转到404页面。

解决方法:

Read more »