From all subtasks, I failed on subtask num 2 and I can’t figure out any other test case on which my code still fails Help will be immensely appreciated!
Actually your solution is a bit complicated, but from what I can spot your code will give “CONFUSED” answer on N=1
You can just store the count of every element from 1-10 instead of doing nested loop
Python code here
Thank you for your reply! I checked the input with N = 1 and it still works by giving the recommended number however, I do agree that my solution is not the most efficient one since I came up with this logic initially before checking other submissions (and ending up using their logic since I do not quite get the code entirely). Thank you though!