File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11package g3301_3400.s3320_count_the_number_of_winning_sequences
22
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 %)
44
55class Solution {
66 fun countWinningSequences (s : String ): Int {
Original file line number Diff line number Diff line change @@ -14,4 +14,14 @@ internal class SolutionTest {
1414 fun countWinningSequences2 () {
1515 assertThat<Int >(Solution ().countWinningSequences(" FWEFW" ), equalTo<Int >(18 ))
1616 }
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+ }
1727}
You can’t perform that action at this time.
0 commit comments