Doubt on HackerBlocks

Question ) https://hack.codingblocks.com/app/practice/6/1041/problem
My answer ) https://ide.codingblocks.com/s/238371

Problem) 3 test case are not passing

@N4i9kita https://ide.codingblocks.com/s/239111 this is the correct logic

Ok . Thanks. I got it

1 Like