FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
spell-checker/efficiencies.java at main · FareedCodess/spell-checker · GitHub
FareedCodess
/
spell-checker
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
spell-checker
/
efficiencies.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (26 loc) · 1.41 KB
Breadcrumbs
spell-checker
/
efficiencies.java
Copy path
File metadata and controls
28 lines (26 loc) · 1.41 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package
project_AVL
;
import
java
.
io
.
File
;
import
java
.
io
.
FileNotFoundException
;
import
java
.
io
.
PrintWriter
;
public
class
efficiencies
{
public
static
void
main
(
String
[]
args
)
throws
FileNotFoundException
{
PrintWriter
writer
=
new
PrintWriter
(
new
File
(
"efficiency.txt"
));
writer
.
println
(
"This file contains big-O complexities of the methods/constructors in dictionary data structure whose primary purpose is "
+
"to be used for a spell checker. "
);
writer
.
println
(
"_"
.
repeat
(
50
));
writer
.
println
(
"Method Name "
+
" "
.
repeat
(
15
) +
"Complexities"
);
writer
.
println
(
"_"
.
repeat
(
50
));
writer
.
println
(
"addWord "
+
" "
.
repeat
(
15
) +
"O(log n)"
);
writer
.
println
(
"findWord "
+
" "
.
repeat
(
15
) +
"O(log n)"
);
writer
.
println
(
"deleteWord "
+
" "
.
repeat
(
15
) +
"O(log n)"
);
writer
.
println
(
"findSimilar "
+
" "
.
repeat
(
15
) +
"O(n)"
);
writer
.
println
(
"saveDictionary "
+
" "
.
repeat
(
15
) +
"O(n)"
);
writer
.
println
(
"_"
.
repeat
(
50
));
writer
.
println
(
"Constructor argument"
+
" "
.
repeat
(
10
) +
"Complexities"
);
writer
.
println
(
"_"
.
repeat
(
50
));
writer
.
println
(
"null "
+
" "
.
repeat
(
10
) +
"O(1)"
);
writer
.
println
(
"word "
+
" "
.
repeat
(
10
) +
"O(1)"
);
writer
.
println
(
"file "
+
" "
.
repeat
(
10
) +
"O(n)"
);
writer
.
close
();
}
}
Back
|
FazBrowse Home
|
New Git URL