搜索结果
查询Tags标签: Substrings,共有 5条记录-
[Oracle] LeetCode 696 Count Binary Substrings
Given a binary string s, return the number of non-empty substrings that have the same number of 0s and 1s, and all the 0s and all the 1s in these substrings are grouped consecutively. Substrings that occur multiple times are counted the number of time…
2022/8/25 2:24:38 人评论 次浏览 -
【Codeforces】550A-Two Substrings
每天随机做一道CF题并写题解,希望有朝一日能拿块牌子(rating:1300~1800) 原题链接:Codeforces 550A-Two Substrings 题意:给你一个字符串s,你需要判断字符串s中是否含有子串"BA"和"AB",且这两个子串是不重叠的。 思路:对于字符串s,"BAB&q…
2021/12/29 6:07:18 人评论 次浏览 -
【Codeforces】550A-Two Substrings
每天随机做一道CF题并写题解,希望有朝一日能拿块牌子(rating:1300~1800) 原题链接:Codeforces 550A-Two Substrings 题意:给你一个字符串s,你需要判断字符串s中是否含有子串"BA"和"AB",且这两个子串是不重叠的。 思路:对于字符串s,"BAB&q…
2021/12/29 6:07:18 人评论 次浏览 -
2021-7-25 Two Substrings
难度 1500 题目 Codeforces:A. Two Substringstime limit per test 2 secondsmemory limit per test 256 megabytesYou are given string s. Your task is to determine if the given string s contains two non-overlapping substrings "AB" and "BA&quo…
2021/7/25 23:39:21 人评论 次浏览 -
2021-7-25 Two Substrings
难度 1500 题目 Codeforces:A. Two Substringstime limit per test 2 secondsmemory limit per test 256 megabytesYou are given string s. Your task is to determine if the given string s contains two non-overlapping substrings "AB" and "BA&quo…
2021/7/25 23:39:21 人评论 次浏览