Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9a78dcf

Browse files
committed
Code correction: Have implemented the program to find the last stone weight.
1 parent 1e335ac commit 9a78dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/raj/LastStoneWeight.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static void main(String[] args) {
4242

4343
// Storing the data to the array list.
4444
for (int i : stones) {
45-
ans.add(stones[i]);
45+
ans.add(i);
4646
}
4747

4848
// Logic.

0 commit comments

Comments
 (0)