A=B
评价数不足
No Three In A Row
   
奖励
收藏
已收藏
取消收藏
标签: level
文件大小
发表于
1.303 KB
2024 年 1 月 5 日 上午 9:59
1 项改动说明 ( 查看 )

订阅以下载
No Three In A Row

描述
Input: A string of "a", "b" and "c".
Output: Replace each "c" with an "a" or "b" so there aren't three "a"'s or "b"'s in a row, return "false" if there are no solutions, or return "true" if there are multiple solutions.
Constraint: 3 <= Input length <= 7
2 条留言
カズエイ 2 月 23 日 下午 9:19 
3 lines (/9 lines)

cbc=bba
acaccb=true
aacbb=false
295820878 2024 年 2 月 18 日 下午 6:26 
Test cases not set. Keywords not allowed. Target was 9 lines. I got 3 lines(for the 3 test cases), 9 lines(using keywords) or 20 lines(including things like truea=true)