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

Commit f0d249b

Browse files
update Kotlin version to 2.1.20
1 parent 64ad642 commit f0d249b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
kotlin("jvm") version "2.1.0"
2+
kotlin("jvm") version "2.1.20"
33
}
44

55
group = "com.schmoczer.leetcode"

‎src/main/kotlin/com/schmoczer/leetcode/_0020/ValidParentheses.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ValidParentheses {
4242
if (c == '(' || c == '[' || c == '{') {
4343
stack.push(c)
4444
} else {
45-
if (stack.isEmpty) {
45+
if (stack.isEmpty()) {
4646
return false
4747
}
4848
val openingBracket = stack.pop()
@@ -51,6 +51,6 @@ class ValidParentheses {
5151
}
5252
}
5353
}
54-
return stack.isEmpty
54+
return stack.isEmpty()
5555
}
5656
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /