Solve This Coding Problem and Win $200

Solve This Coding Problem and Win $200

Kenny Gunderman

2 года назад

2,455,077 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

GodOfPro
GodOfPro - 08.11.2021 00:19

a real programmer won’t go outside

Ответить
drezex
drezex - 30.10.2023 16:30

That sum questions.

static int[] sum(int[] arr, int sum) {
for (int i=0; i<arr.length-1; i++) {
for (int j=i; j<arr.length; j++) {
if (arr[i] + arr[j] == sum)
return new int[] {arr[i], arr[j]};
}
}
}

This also works cause gives same output. Is this code correct for that question??

Ответить
Ivan
Ivan - 26.10.2023 00:17

first lady, when she say reverse method.. she have find the solution. Honestly stop pushing this fucking 1980 for loop methods kids, is 2023 and guess.. are even slower.

Ответить
AtlanticLove
AtlanticLove - 25.10.2023 06:59

How do you handle a situation where you can MORE THAN 2 numbers to equal the sum?

Ответить
lowlight
lowlight - 20.10.2023 03:54

The first one is just return string[::-1]

Ответить
Bulaloi Tech
Bulaloi Tech - 18.10.2023 11:29

A real chad would just ask the problem then google it if he doesn't know

Ответить
the
the - 15.10.2023 13:01

"Java doesn't work." 🗿🗿

Ответить
D Brd
D Brd - 12.10.2023 17:51

worst cameraman ever. leave this field pls

Ответить
Gahith Nahdi
Gahith Nahdi - 11.10.2023 21:34

arr = [1,3,5,6,11,23]

def twoSum(arr,Sum):
app=0
for i in range(len(arr)):
app+=arr[i]
if app==Sum:
break

return app

print(twoSum(arr,9))

Ответить
Rahul
Rahul - 11.10.2023 10:54

The first one who tried to reverse a string, her boyfriend who stood there was crazy thinking his life got reversed and now kenny is asking to just reverse a string, which was actually proved by her gf😂😂

Ответить
Pilot Tam
Pilot Tam - 08.10.2023 09:43

Imagine getting 200 bucks for each leetcode medium question

Ответить
Heisemb
Heisemb - 07.10.2023 17:28

I think it will be better if WE could see easier the exercice , so maybe used a picture with the stuff write on it with the solution explain that would bé better

Ответить
Fit
Fit - 05.10.2023 10:26

1) a = input()
print(a[::-1])

Ответить
Jaspe Michael Ingabire
Jaspe Michael Ingabire - 03.10.2023 22:19

😂😂😂i wish to be in their places!!! if only real programming interviews questions were that easy😂😂😂like "iterate through this 2D array and return the sum of the elements"!!! that's like an O(n) question!!!😂😂😂😂😂😂😂😂

Ответить
aromal suresh
aromal suresh - 02.10.2023 18:42

cameraman stay still bruh..plzz

Ответить
VFP - (Vereinte Freiheitspartei)
VFP - (Vereinte Freiheitspartei) - 01.10.2023 13:42

In python just do string[::-1]
Why actually do for loop

Ответить
Gaurav Swami
Gaurav Swami - 27.09.2023 21:32

100$ for reversing a string 🤣 man I worked on a full fledged website for around 1.5 moths for a hackathon that didn't even pay me that much

Ответить
Kristina's World
Kristina's World - 22.09.2023 11:44

SWO!!

Ответить
The Bicycle Man
The Bicycle Man - 13.09.2023 23:01

That TWO SUM problem - gosh i finally learnt how to solve it after THREEEE weeks from not knowing a single thing about coding - every single WORD of code felt like being hit by 1000 new bricks, it was probably the hardest thing to ever wrap my head around n now when i think about it - its SUPER logical and optimized

- I remember the most concept i codnt fathom was how is a hash map able to sore a key and be able to retrieve it instantly.. that concept I just couldnt wrap my head around. Like how can a hashmap be able to INSTANTLY point to its location in the memory or whatever magical place keys get stored at.. fuk now that i am typin this i am not even sure i fully know!

Ответить