Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite42ecee

Browse files
refactor 208
1 parent771401e commite42ecee

File tree

1 file changed

+0
-21
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-21
lines changed

‎src/main/java/com/fishercoder/solutions/_208.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
packagecom.fishercoder.solutions;
22

3-
/**
4-
* 208. Implement Trie (Prefix Tree)
5-
*
6-
* Implement a trie with insert, search, and startsWith methods.
7-
*
8-
* Example:
9-
*
10-
* Trie trie = new Trie();
11-
*
12-
* trie.insert("apple");
13-
* trie.search("apple"); // returns true
14-
* trie.search("app"); // returns false
15-
* trie.startsWith("app"); // returns true
16-
* trie.insert("app");
17-
* trie.search("app"); // returns true
18-
* Note:
19-
*
20-
* You may assume that all inputs are consist of lowercase letters a-z.
21-
* All inputs are guaranteed to be non-empty strings.
22-
*/
23-
243
publicclass_208 {
254
publicstaticclassSolution1 {
265
classTrieNode {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp