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 94ed0de

Browse filesBrowse files
authored
Update Solution.kt
1 parent 00ce680 commit 94ed0de
Copy full SHA for 94ed0de

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
  • src/main/kotlin/g0801_0900/s0887_super_egg_drop
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎src/main/kotlin/g0801_0900/s0887_super_egg_drop/Solution.kt

Copy file name to clipboardExpand all lines: src/main/kotlin/g0801_0900/s0887_super_egg_drop/Solution.kt
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ class Solution {
1010
while (true) {
1111
var temp = dp[0]
1212
for (i in 1 until dp.size) {
13-
val `val` = dp[i] + temp + 1
13+
val localValue = dp[i] + temp + 1
1414
temp = dp[i]
15-
dp[i] = `val`
16-
if (`val` >= n) {
15+
dp[i] = localValue
16+
if (localValue >= n) {
1717
return counter
1818
}
1919
}

0 commit comments

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