ianding1 / leetcode.vim

Solve LeetCode problems in Vim!
MIT License
311 stars 43 forks source link

LeetcodeTest always return Wrong Answer #66

Open qwss12345 opened 3 years ago

qwss12345 commented 3 years ago

the answer is : class Solution {
public:
vector twoSum(vector& nums, int target) {
for(int i = 0; i < nums.size()-1; i++) {
for(int j = i+1; j< nums.size(); j++) {
if(nums[i] + nums[j] == target) {
return {i, j};
}
}
}
return {};
}
};

Screen Shot 2021-04-06 at 9 03 04 AM

but submit can be accepted.

Screen Shot 2021-04-06 at 9 07 49 AM
SmartDengC commented 2 years ago

Excuse me, I would like to ask if you have encountered this problem when running tests

Snipaste_2022-03-25_08-06-59
SmartDengC commented 2 years ago

I'm already logged in here and can see the topics I submitted on the leeetcode website, but I don't know why I can't submit them in neovim. Snipaste_2022-03-25_09-25-47

I used neovim, version 0.5 Snipaste_2022-03-25_09-28-12

braveltd commented 2 years ago

Excuse me, I would like to ask if you have encountered this problem when running tests Snipaste_2022-03-25_08-06-59

same problem