The 3rd testcase says it has the expected output of [-1] which makes no sense. When I press 'Use Testcase' and run it, it passes the testcase and says the expected output is [1, 2]. However, when i ...
When running the problem tests, I noticed that the same input appears in two different test cases but with two different expected outputs. The input nums and k are identical in both test cases, but ...
Thankfully, last week President Trump delayed assessing higher tariffs on Chinese imports by another 90 days. China followed suit and delayed its own tariffs. The new deadline is Nov. 10, which if not ...
First for loop will execute and then int count=0 will store a zero value then again for loop will execute and count++, After that I check a condition count > n/2.
Then, what should be the expected output? Is it [1,2] or [1,2,3]? When I added it to the test case and executed, the expected output was [1,2]. It would be great if this case were included as an ...
This is my custom testcase and it's giving wrong expected answer then what the actual answer might be. Since we have to change two elements and then find the minimum possible score, thus, changing the ...
Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume that the majority element always exists in the ...
At first, I was decrementing the candidate counters alternately starting with the first candidate, then the second, and so on. My solution failed some test cases with that logic. Then, I switched the ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results