Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
Jeez, just watched a couple of your videos but plan to watch them all. Love the explanations and your method of teaching
Thank you! Finally found the channel I’ve been looking for! Thank you for having a playlist for each topic!
yes i think so too
but after last 2 month leetcode declined really badly cant run code exeeding time
hi guys, how do i try out this code in VS codeAny ideas?
ooo im blinded by the lights ( white screen)
❤
thank you so much
thanks sir
var twoSum = function(nums, target) { let map = new Map() for (let i = 0; i < nums.length; i++){ let num1 = nums[i] let num2 = target - num1 if(map.has(num2)){ return [i,map.get(num2)] } map.set(num1, i) }};
this solution is so cool lol
JavaScript Codefunction sum(s, t) { let i = 0; let j = i + 1; while (j < s.length) { if (s[i] + s[j] == t) { return [i, j]; } else { j++; } i++; }}const res = sum(arr, target);
This code fails for test case [3, 2, 3]
Jeez, just watched a couple of your videos but plan to watch them all. Love the explanations and your method of teaching
Thank you! Finally found the channel I’ve been looking for! Thank you for having a playlist for each topic!
yes i think so too
but after last 2 month leetcode declined really badly cant run code exeeding time
hi guys, how do i try out this code in VS code
Any ideas?
ooo im blinded by the lights ( white screen)
❤
thank you so much
thanks sir
var twoSum = function(nums, target) {
let map = new Map()
for (let i = 0; i < nums.length; i++){
let num1 = nums[i]
let num2 = target - num1
if(map.has(num2)){
return [i,map.get(num2)]
}
map.set(num1, i)
}
};
this solution is so cool lol
JavaScript Code
function sum(s, t) {
let i = 0;
let j = i + 1;
while (j < s.length) {
if (s[i] + s[j] == t) {
return [i, j];
} else {
j++;
}
i++;
}
}
const res = sum(arr, target);
This code fails for test case [3, 2, 3]