Krillin is dead AGAIN Problem Code

Can i get correct value of medium using this formula:
3median = 2mean + mode.

Or i have to explicitly figure out through element wise compare.

I don’t think you can use… this formula holds good for a symmetrical continuous distribution… here we have a fully random discrete distribution… hence we cannot use that formula… you need to figure them out explicitly…