696. Count Binary Substrings

카테고리 없음

[Leetcode] 696. Count Binary Substrings

696. 이진 문자열 계산하기 Given a binary string s, return the number of non-empty substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these substrings are grouped consecutively. Substrings that occur multiple times are counted the number of times they occur. 이진문자열이 주어지면 똑같은 개수의 0과 1로 이루어진 비어있지 않은 부분문자열을 리턴해여라. 그리고 0과 1의 부분문자열들은 연속하여 그룹지어져있다. 여러번 반복되는 부분문자열은 그들이 발생되는 횟수..

메론러버
'696. Count Binary Substrings' 태그의 글 목록