Could anyone give me an example where we decrement matched variable and why we need to decrement the matched variable?
I could not get any example where it will hit this line. Even I comment the decrementing of matched line still the output is same i.e commenting this line did not alter the way the logic works at all.
if left_char in char_frequency:
if char_frequency[left_char] == 0:
matched -= 1
Many thanks for your time.
Type your question above this line.
Course: https://www.educative.io/collection/5668639101419520/5671464854355968
Lesson: https://www.educative.io/collection/page/5668639101419520/5671464854355968/4679331609575424