Can’t figure out why count in inner loop is not increasing , Inner count is represented by c and at each iteration of i , it is only showing the value as 1 .
code link : https://ide.codingblocks.com/s/162369
Can’t figure out why count in inner loop is not increasing , Inner count is represented by c and at each iteration of i , it is only showing the value as 1 .
code link : https://ide.codingblocks.com/s/162369
C is not incremented because you make j++ before inserting element into set.
Your working code: