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 7e70cb1

Browse files
clean up
1 parent 1f083de commit 7e70cb1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

‎src/main/kotlin/zalando/FetchProductExcludingCurrent.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ class FetchProductExcludingCurrent {
1515
fun fetchProduct(input: List<Int>): List<Int> {
1616

1717
var currentProduct = 1
18-
1918
val result = mutableListOf<Int>()
20-
21-
// for((element, index) in input.withIndex()){
22-
// var currentProduct = element * input[index + 1] *
23-
// }
2419
for (i in 0..input.size - 1) {
2520
for (j in 0..input.size - 1) {
2621
if (i == j) continue

0 commit comments

Comments
(0)

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