File tree 2 files changed +11
-1
lines changed
main/kotlin/g3301_3400/s3320_count_the_number_of_winning_sequences
test/kotlin/g3301_3400/s3320_count_the_number_of_winning_sequences
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
package g3301_3400.s3320_count_the_number_of_winning_sequences
2
2
3
- // #Hard #String #Dynamic_Programming #2024_10_15_Time_335_ms_ (100.00%)_Space_78.8_MB_(66.67 %)
3
+ // #Hard #String #Dynamic_Programming #2025_03_14_Time_56_ms_ (100.00%)_Space_79.51_MB_(100.00 %)
4
4
5
5
class Solution {
6
6
fun countWinningSequences (s : String ): Int {
Original file line number Diff line number Diff line change @@ -14,4 +14,14 @@ internal class SolutionTest {
14
14
fun countWinningSequences2 () {
15
15
assertThat<Int >(Solution ().countWinningSequences(" FWEFW" ), equalTo<Int >(18 ))
16
16
}
17
+
18
+ @Test
19
+ fun countWinningSequences3 () {
20
+ assertThat<Int >(Solution ().countWinningSequences(" W" ), equalTo<Int >(1 ))
21
+ }
22
+
23
+ @Test
24
+ fun countWinningSequences4 () {
25
+ assertThat<Int >(Solution ().countWinningSequences(" E" ), equalTo<Int >(1 ))
26
+ }
17
27
}
You can’t perform that action at this time.
0 commit comments