Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › STRING BASICS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Scan the string "abbaccca" once. Set and preserve whether it contains at least two consecutive identical characters and whether it contains at least three consecutive identical characters, then print both results exactly as shown.
OUTPUT
SampleAt least two: true At least three: true
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.