2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1
1
| # | Title | Solutions | Video | Difficulty | Tag
2
2
|------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|------------|----------------------------------------------------------------------
3
+ | 3360 | [ Stone Removal Game] ( https://leetcode.com/problems/stone-removal-game/ ) | [ Java] ( https://github.com/fishercoder1534/Leetcode/blob/master/src/main/java/com/fishercoder/solutions/fourththousand/_3360.java ) | | Easy |
3
4
| 3354 | [ Make Array Elements Equal to Zero] ( https://leetcode.com/problems/make-array-elements-equal-to-zero/ ) | [ Java] ( https://github.com/fishercoder1534/Leetcode/blob/master/src/main/java/com/fishercoder/solutions/fourththousand/_3354.java ) | | Easy |
4
5
| 3349 | [ Adjacent Increasing Subarrays Detection I] ( https://leetcode.com/problems/adjacent-increasing-subarrays-detection-i/ ) | [ Java] ( https://github.com/fishercoder1534/Leetcode/blob/master/src/main/java/com/fishercoder/solutions/fourththousand/_3349.java ) | | Easy |
5
6
| 3340 | [ Check Balanced String] ( https://leetcode.com/problems/check-balanced-string/ ) | [ Java] ( https://github.com/fishercoder1534/Leetcode/blob/master/src/main/java/com/fishercoder/solutions/fourththousand/_3340.java ) | | Easy |
Original file line number Diff line number Diff line change
1
+ package com .fishercoder .solutions .fourththousand ;
2
+
3
+ public class _3360 {
4
+ public static class Solution1 {
5
+ public boolean canAliceWin (int n ) {
6
+ int turns = 0 ;
7
+ int removeCount = 10 ;
8
+ while (n >= removeCount ) {
9
+ n -= removeCount ;
10
+ removeCount --;
11
+ turns ++;
12
+ }
13
+ return turns % 2 != 0 ;
14
+ }
15
+ }
16
+ }
0 commit comments