Relative Content

Tag Archive for c++vectorerror-handlinglong-integer

Leetcode daily problem, can’t explain why it happened

In this case what the leetcode problem was about probably doesn’t matter, because it’s not about the algorithm. However it was problem number 3075 just in case you want to check it out. Ok now the problem is the following: I have first version of the code and the second version of the code. The first one doesn’t word for some reason giving the error. Here is the first version of the code. The input is: [7, 50, 3] and k = 3;

Leetcode daily problem, WEIRDEST THIS I HAVE EVER SEEN, can’t explain why it happened

In this case what the leetcode problem was about probably doesn’t matter, because it’s not about the algorithm. However it was problem number 3075 just in case you want to check it out. Ok now the problem is the following: I have first version of the code and the second version of the code. The first one doesn’t word for some reason giving the error. Here is the first version of the code. The input is: [7, 50, 3] and k = 3;