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

Appearance settings

Commit 492c290

Browse filesBrowse files
committed
Merge branch 'release/1.0.25.0'
2 parents 3bfb7ca + 412f611 commit 492c290
Copy full SHA for 492c290

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/main/scala/org/codecraftlabs/leetcode/ReverseLinkedList.scala

Copy file name to clipboardExpand all lines: src/main/scala/org/codecraftlabs/leetcode/ReverseLinkedList.scala
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ object ReverseLinkedList {
77
if (head == null) {
88
head
99
} else {
10-
val nodeStack = mutable.ArrayStack[ListNode]()
10+
val nodeStack = mutable.Stack[ListNode]()
1111
process(head, nodeStack)
1212
nodeStack.head
1313
}
1414

1515
}
1616

17-
private def process(node: ListNode, nodeStack: mutable.ArrayStack[ListNode]): Unit = {
17+
private def process(node: ListNode, nodeStack: mutable.Stack[ListNode]): Unit = {
1818
if (node != null) {
1919
val item = node.next
2020

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.