maniratnagupta's blog

By maniratnagupta, history, 7 years ago, In English

Bulbs/651A

submission of my solution

Why is my logic going wrong?

  • Vote: I like it
  • -10
  • Vote: I do not like it

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You are interpreting numbers as string and then using Distinct(). Think of what happens when two digit numbers appear in input and Distinct which interprets them as character acts on them.