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

Commit0550711

Browse files
Update CountSinglyLinkedListRecursion.java (TheAlgorithms#2170)
Only method comment for public recursive method.
1 parent5f59cd8 commit0550711

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎DataStructures/Lists/CountSinglyLinkedListRecursion.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ public static void main(String[] args) {
1818
privateintcountRecursion(Nodehead) {
1919
returnhead ==null ?0 :1 +countRecursion(head.next);
2020
}
21-
21+
/**
22+
*Returns the count of the list.
23+
*/
2224
@Override
2325
publicintcount() {
2426
returncountRecursion(getHead());

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp