Some error occured while loading page for you. Please try again.
We use cookies to ensure you have the best browsing experience on our website.
Please read our cookie policy for more information about how we use cookies.
Thinking about it, since you may be coding in a language I do not know very well, seeing your code may not help. I solve most of the problems here by using JavaScript by the way. The problem here is we do not know which of the four values you got wrong in case#3. When you see the results, if you click on the test case that you got wrong, you should be able to get access to the data - that should help you see what your error is. I would think it is more likely to be a problem relating to the mode or median. For instance, if there is more than one mode, have you made sure your code always picks out the smallest value?
Thinking about it, since you may be coding in a language I do not know very well, seeing your code may not help. I solve most of the problems here by using JavaScript by the way. The problem here is we do not know which of the four values you got wrong in case#3. When you see the results, if you click on the test case that you got wrong, you should be able to get access to the data - that should help you see what your error is. I would think it is more likely to be a problem relating to the mode or median. For instance, if there is more than one mode, have you made sure your code always picks out the smallest value?
Add Reply Preview cancel