please find the question on below link:
https://drive.google.com/file/d/17pfgTzAo5QxJ0K511KVR59WrywFI6iyH/view?usp=sharing
int is_abb(char *str) {
int ok = 1;
for (int i = 0; i < str_len(str); i++) {
if (str[i] == 'a' && ok) continue;
if (str[i] == 'b') ok = 0;
else return false;
}
return true;
}
Comments
Leave a comment