Skip to content

3330-find-the-original-typed-string-i

DevGod
DevGod
Elf Vtuber
/**
* @param {string} word
* @return {number}
*/
var possibleStringCount = function(word) {
let ans = 0;
for(let I = 1; I<word.length; I++){
if( word[I-1] === word[I]){
ans++;
}
}
return ans+1;
};