• + 4 comments

    dude you can solve it in o(n) use y=sqrt(r-i*i) if y==integer value,then count=+4