problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color 命名空间参考

  1. Remove Colored Pieces if Both Neighbors are the Same Color
更多...

class  Solution
 

函数

 TEST (remove_colored_pieces_if_both_neighbors_are_the_same_color, case1)
 
 TEST (remove_colored_pieces_if_both_neighbors_are_the_same_color, case2)
 
 TEST (remove_colored_pieces_if_both_neighbors_are_the_same_color, case3)
 

详细描述

  1. Remove Colored Pieces if Both Neighbors are the Same Color

函数说明

◆ TEST() [1/3]

leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color::TEST ( remove_colored_pieces_if_both_neighbors_are_the_same_color  ,
case1   
)

在文件 leetcode_test.cpp2408 行定义.

2408 {
2409 ASSERT_TRUE(Solution::winnerOfGame("AAABABB"));
2410 }

引用了 leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color::Solution::winnerOfGame().

◆ TEST() [2/3]

leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color::TEST ( remove_colored_pieces_if_both_neighbors_are_the_same_color  ,
case2   
)

在文件 leetcode_test.cpp2412 行定义.

2412 {
2413 ASSERT_FALSE(Solution::winnerOfGame("AA"));
2414 }

引用了 leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color::Solution::winnerOfGame().

◆ TEST() [3/3]

leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color::TEST ( remove_colored_pieces_if_both_neighbors_are_the_same_color  ,
case3   
)

在文件 leetcode_test.cpp2416 行定义.

2416 {
2417 ASSERT_FALSE(Solution::winnerOfGame("ABBBBBBBAAA"));
2418 }

引用了 leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color::Solution::winnerOfGame().