Intro to Computing - How Data is Represented
A student wrote this pseudocode for a simple compression:
What is the main error in this approach?
for each character in string:
if character is same as previous:
increase count
else:
output count and previous character
reset count to 1What is the main error in this approach?
