Solve This Coding Problem and Win $200

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • Get in touch with me in my free software developer community: www.skool.com/...
    📚 Free 0 to Full-Time Programmer in 5 Steps eBook: kgunderman.com/...
    ‪@NickWhite‬ and I hit the streets of Chicago to ask strangers If they know how to write code. If they do, and they're able to solve our programming challenges we will give them up to $200.
    Subscribe to Nick's TH-cam channel:
    www.youtube.co...
    Business Inquiries:
    contact@kgunderman.com
    Resources:
    ----------------------------------------------------------------------------
    My Top Recommended Udemy Courses: bit.ly/3miUBbm
    Skillshare: skl.sh/kennygu...
    Socials:
    ----------------------------------------------------------------------------
    Subscribe: / kennygunderman
    Instagram: / kennygunderman
    Twitter: / kennygunderman

ความคิดเห็น • 2.3K

  • @godofpro5767
    @godofpro5767 2 ปีที่แล้ว +21012

    a real programmer won’t go outside

    • @RedStone576
      @RedStone576 2 ปีที่แล้ว +296

      based

    • @Sp4wn_
      @Sp4wn_ 2 ปีที่แล้ว +151

      based

    • @tedlopez1368
      @tedlopez1368 2 ปีที่แล้ว +119

      based

    • @MrBruh-xc1qy
      @MrBruh-xc1qy 2 ปีที่แล้ว +109

      based

    • @SolathPrime
      @SolathPrime 2 ปีที่แล้ว +72

      I'll rune the joke
      Also your right

  • @stxnw
    @stxnw 3 ปีที่แล้ว +7621

    i am starting to think im better than the average programmer after watching this. might be a sampling bias since better programmers dont leave the house.

    • @soruzein2988
      @soruzein2988 3 ปีที่แล้ว +155

      they fear to the sun

    • @stxnw
      @stxnw 3 ปีที่แล้ว +114

      just want everybody to know that i am all green on my github

    • @mohitsagar9492
      @mohitsagar9492 3 ปีที่แล้ว +89

      lol I cringed hard when I saw the first girl using "+=" with a string in Python (since strings are immutable in Python, it basically creates a new string every time making the complexity O(N^2)).

    • @stxnw
      @stxnw 3 ปีที่แล้ว +72

      @@mohitsagar9492 if im not wrong string concatenation are ammortized O(1) just like push_back() in C++ without reserve(). either way, it should be a non issue nowadays. there were more... pressing mistakes.. in the video.

    • @mohitsagar9492
      @mohitsagar9492 3 ปีที่แล้ว +37

      @@stxnw Right in C++ strings are mutable! However in Python and Java they are immutable. Honestly everyone other than the first girl and that one Indian dude with Hashmaps didn't seem to be actual programmers so I didn't expect much from them anyway XD. And you will be surprised how much these small optimizations can matter when dealing with massive data!

  • @qmance8062
    @qmance8062 2 ปีที่แล้ว +96

    I watched this video for the first time a year ago. I had no idea what they were even talking about. Now a year later, i know exactly whats going on and im able to solve pretty much every problem. It feels nice to see progress.

    • @Itsmebieno
      @Itsmebieno ปีที่แล้ว

      I want to do so

    • @Gupatik
      @Gupatik ปีที่แล้ว

      same here

    • @BucketListMo
      @BucketListMo ปีที่แล้ว

      Woah for real? What helped you achieve that

    • @filyboy7
      @filyboy7 ปีที่แล้ว +1

      same here! i'm on day 20 of angela yu's 100 days of code on udemy, and i was able to solve every question in the video 😁

    • @Broketechbro
      @Broketechbro ปีที่แล้ว +1

      @@filyboy7I am also studying that course 😊

  • @brownbearedurardo
    @brownbearedurardo ปีที่แล้ว +13

    I'm a 3rd-year Computer Engineering student and this video makes me wanna refresh my knowledge in programming (both C and C++). Love from the Philippines.

  • @viepng
    @viepng ปีที่แล้ว +3

    Remember y'all, of you ever get stuck on an interview question, throw a hash map at it

  • @uyscuti5571
    @uyscuti5571 3 ปีที่แล้ว +44

    man at 3:37 is like : C , C# ,C+,C++,C+++,C x max pro ,C lite

  • @micknamens8659
    @micknamens8659 2 ปีที่แล้ว

    -- sum2d in Haskell with standard Prelude function 'foldl' :
    sum2d = foldl (foldl (+)) 0
    -- outputting the sample result:
    main = putStr $ show $ sum2d [[1, 2, 3],[4, 5]]

  • @arpanghoshal2579
    @arpanghoshal2579 3 ปีที่แล้ว +30

    2:06 Does it matter what language?
    Nah
    *Processed to write machine code in 0s and 1s*

  • @mmiselodlephu3669
    @mmiselodlephu3669 ปีที่แล้ว +2

    First time I watched this video was before I started coding and I had no idea what's happening. I just returned to see how far I've come. It's unbelievable how far I've come in 5 months

  • @syedayaanhussain6151
    @syedayaanhussain6151 3 ปีที่แล้ว +35

    Q1-
    #reversing a string in 2 lines
    inputstr=input("Enter the string here")
    print(inputstr[::-1])

    • @halbgefressen9768
      @halbgefressen9768 3 ปีที่แล้ว +15

      #imaprogrammerandneedtotelleveryone

    • @Mariiius53
      @Mariiius53 3 ปีที่แล้ว

      What language is that ? I never saw " ::- " operator wow

    • @syedayaanhussain6151
      @syedayaanhussain6151 3 ปีที่แล้ว

      @@Mariiius53 python and using slicing

    • @Pong-IT
      @Pong-IT 3 ปีที่แล้ว

      echo implode('',array_reverse(str_split($string)));

    • @Mariiius53
      @Mariiius53 3 ปีที่แล้ว +3

      Real programmers make it in brainfuck

  • @Elbasura774
    @Elbasura774 ปีที่แล้ว +1

    if youre interested in a better way for the reversed string (in python):
    def reverse(st):
    result = ''
    for index in range(len(st)):
    result += st[-(index + 1)]
    return result
    all you do is use the regressive index (iterable_variable[-value]) in python to sum each respective character in a loop.

    • @brevwil
      @brevwil ปีที่แล้ว +2

      or even better str = str[::-1]

    • @solaire_of_the_east
      @solaire_of_the_east ปีที่แล้ว +1

      @LambdaSan Bruh, that's what I was thinking. All these people defining function for a simple task.

  • @wenreloz
    @wenreloz 2 ปีที่แล้ว

    Find the numbers in the array that sums up a given number? You can pick two random numbers in the array inside a while loop.

  • @ayubhaji2441
    @ayubhaji2441 3 ปีที่แล้ว +33

    That first girl solution was nice, I been around your channel around the past but this is the first time seeing you do these videos. It's been a while since I solve some problems, these videos awake that feeling in me again.😁

  • @PinoyDiskubreChannel
    @PinoyDiskubreChannel 3 ปีที่แล้ว +82

    I thought the First guy - Indian guy would solve the Difficult round first...but SAVE by the SECOND Indian guy! WAY TO GO INDIAN TEACHERS on TH-cam!!!!

    • @NoOne-sy5fg
      @NoOne-sy5fg 2 ปีที่แล้ว +1

      The hashmap guy was making things complex for himself...when it could be solved so simple in O(N) time complexity

    • @ivicamajmunskikreten9714
      @ivicamajmunskikreten9714 2 ปีที่แล้ว

      @@NoOne-sy5fg lol idd, I facepalmed when I heard hashmap.

    • @MattMcConaha
      @MattMcConaha 2 ปีที่แล้ว +1

      @@NoOne-sy5fg I think with a hashmap the problem can be solved in O(N) even if the array isn't sorted. If the array is sorted then you can get O(N) using a more basic method, but I don't think the problem statement specified that the array was necessarily sorted. The hashmap is definitely more complicated in terms of basic operations that would need to be understood, but in code it is all abstracted away and then using the hashmap will end up with cleaner code than the other method that has the same time complexity but only works on a more constrained problem.

  • @thestranger8352
    @thestranger8352 ปีที่แล้ว +1

    solved all the questions with simple solutions feeling confident for some weird reasons becoz i am second year it student

  • @formax07
    @formax07 2 ปีที่แล้ว

    My solution for the second problem, with JS:
    let arr = [1,3,5,6,11,23];
    let sum = 9;
    const challange = (array, sum) =>{
    let a = 0;
    let operation = 0;
    for(let i = 0; i < array.length; i++){
    a = array[i];
    if(a == sum){
    return `Number are ${a}`
    }
    for(let j = i + 1 ; j < array.length - i; j++){
    operation = a + array[j];
    if(operation == sum){
    return `Numbers are ${array[i]} and ${array[j]}`
    }
    }
    }
    return "Cannot sum value with array data"
    }
    challange(arr,sum);

  • @GraphicalBoss
    @GraphicalBoss 3 ปีที่แล้ว +93

    This coding videos are awesome! I don't get impressed by much but this is very fun and interesting. Love it. Can't wait to see the next one of this.

  • @migueljunqueira287
    @migueljunqueira287 ปีที่แล้ว

    In JS to last one:
    function twoSum(array, sum){
    const args = []
    for(let i = 0; i < array.length; i++){
    array.forEach(e=>{
    if(sum == e + array[i])
    args.push([e, array[i]])
    })
    }
    return args
    }
    That function return each possibly combination of two number in array that sum the "sum" variable

    • @asiamies9153
      @asiamies9153 ปีที่แล้ว

      this is called the naive approach

  • @radioku5e362
    @radioku5e362 2 ปีที่แล้ว

    Hash map for two sum, seriously. That's like reaching behind your back to scratch your chest.
    def twoSum(arr, x):
    for i in range(len(arr)):
    for j in range(len(arr)):
    if i != j and arr[i] + arr[j] == x:
    return [arr[i], arr[j]]
    return -1
    nums = [1, 3, 5, 6, 11, 23]
    print(twoSum(nums, 9))

  • @K_CO_GurvinderSingh
    @K_CO_GurvinderSingh 3 ปีที่แล้ว +9

    hard part is the complexity or constraints on input data . Thats what makes u apply mathematics

  • @sonikblade
    @sonikblade 3 ปีที่แล้ว +5

    The C# programmer was cut out of the video in the twosum equals 9 problem, cause Kenny gave him the prize instantly the moment he saw Foreach written in the whiteboard.

    • @sneak9407
      @sneak9407 2 ปีที่แล้ว

      Yep, it's foreach has worse performance than regular for loops. No need to let people see that solution and start considering it a good approach.

    • @sonikblade
      @sonikblade 2 ปีที่แล้ว +1

      @@sneak9407 I garantee you that the whiteboard would not have enough RAM for any of both approaches

    • @sneak9407
      @sneak9407 2 ปีที่แล้ว

      @@sonikblade lmao.

  • @edison2964
    @edison2964 2 ปีที่แล้ว

    As a Comp Science student who has graduated, I didn’t understand a word or any idea what they were all saying except when they asked to name the languages

  • @johnshaw6702
    @johnshaw6702 ปีที่แล้ว +1

    In most modern languages, the simplest answer is the same. You could write it in C and you've already covered C++, C#, and others. There my be some difference in syntax, but the algorithm is the same.

  • @ericjorgearnezinochea9679
    @ericjorgearnezinochea9679 2 ปีที่แล้ว +5

    All of them were pretty easy. Thank you. I still have some imposter syndrome and this helped.

    • @yoshiontheloose
      @yoshiontheloose 2 ปีที่แล้ว +1

      When you have imposter syndrome, think of the robot guy from Grandma's Boy and laugh about that character lol. You're doing great, keep it up and code everyday.

    • @datcate9116
      @datcate9116 2 ปีที่แล้ว

      This is my week 4 of CS and I'm alr stressing that I don't understand any of these lol

    • @billr5842
      @billr5842 2 ปีที่แล้ว

      @@datcate9116 I am in my first hour of CS and I dont understand any of this

    • @datcate9116
      @datcate9116 2 ปีที่แล้ว

      @@billr5842 I'm no longer in CS HAHA

  • @EduardoArena
    @EduardoArena 2 ปีที่แล้ว

    Question 3 double for loop:
    arr = [1, 3, 5, 6, 11, 23]
    lenarr = len(arr) - 1
    for i in range (arr[0], lenarr):
    x = arr[i]
    for o in range (arr[0], lenarr):
    y = arr[o]
    if x + y == 9:
    print(x)
    print(y)

  • @anvithkakkera7196
    @anvithkakkera7196 3 ปีที่แล้ว +9

    wow, u went from 30k to almost 80k subs! amazing, didn't realize how much ur channel grew recently

  • @thebicycleman8062
    @thebicycleman8062 ปีที่แล้ว

    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!

  • @nicreven
    @nicreven ปีที่แล้ว

    The funny thing about C is that the "sum of a matrix" problem can just be done like
    for(int i = 0; i < length; i++)
    sum += matrix[i];
    since matrices are almost the exact same as 1d arrays

    • @bultvidxxxix9973
      @bultvidxxxix9973 ปีที่แล้ว

      That depends on how the matrix was created. If the matrix is a jagged array you'll just sum up the pointers with that code.

  • @Webberjo
    @Webberjo 9 หลายเดือนก่อน

    I would've done that last one using using two for loops.
    Not elegant, but effective.

  • @micknamens8659
    @micknamens8659 2 ปีที่แล้ว

    -- reversing a string in plain Haskell:
    reverse' = rev [] where
    rev r (x:xs) = rev (x:r) xs
    rev r [ ] = r
    -- outputting the sample result:
    main = putStr $ reverse' "abc"
    -- alternative variant using standard Prelude function 'foldr' :
    reverse'' = foldr (:) []

  • @rally_furymoments5294
    @rally_furymoments5294 3 ปีที่แล้ว +30

    The guy that won the 200 bucks performs cool programming magic!!!

    • @arracso.
      @arracso. 3 ปีที่แล้ว +5

      He just wanted to give the better solution regarding time consumption O(n) (since hashmap most of the time only takes O(1) to access)

    • @antonfernando8409
      @antonfernando8409 2 ปีที่แล้ว

      @@arracso. what was the solution? didnt' quiet catch it.

    • @arracso.
      @arracso. 2 ปีที่แล้ว +2

      @@antonfernando8409 He is basically addidng to a hashmap (in python dict) the complementary number to the one he is currently in. Also every time he see if the number that he is on is or not on the dict. If it is then he just found the two numbers. (sorry my explanation may not be the best).

    • @arracso.
      @arracso. 2 ปีที่แล้ว +1

      also acces to the dict is O(1) most of the time so instead of O(n^2) he just achieved O(n).

  • @alokjha3153
    @alokjha3153 2 ปีที่แล้ว +1

    3:42 The way he roasted computer science major as a math major.

  • @kawwedha4006
    @kawwedha4006 3 ปีที่แล้ว +7

    finally coding used for entertainment 😉

  • @flew6176
    @flew6176 ปีที่แล้ว

    for the first exercices just need to write : string[::-1]

  • @mrED123
    @mrED123 11 หลายเดือนก่อน

    3:40 hm yes c+, my favorite programming language

  • @bubkislord6613
    @bubkislord6613 2 ปีที่แล้ว +1

    The one with the array is kinda easy...
    Python:
    array = [1, 2, 3, 4, 5, 2, 331]
    sum = 0
    for i in array:
    sum += i
    print(sum)
    only 5 lines of code.
    Why would you ever use java???

  • @abir95571
    @abir95571 ปีที่แล้ว +1

    Them old dude isn’t messing about .. cobol , fortran 😂

  • @erikverboom5383
    @erikverboom5383 ปีที่แล้ว +1

    Fun concept. Was a bit disappointed that it was hard to see what problems you asked them to solve, didn't explain how they solved it, and that the questions were so basic.

  • @GuillaumeLT
    @GuillaumeLT ปีที่แล้ว

    for the second one can you do this. It's seem too simple:
    while array.count > 1 do (
    array[1] = array[1]+array[array.count]
    delete array[array.count]
    )

  • @yueruan1672
    @yueruan1672 2 ปีที่แล้ว +1

    What camera are you using for the end segment 6:30 . The video quality is awesome

  • @jialx
    @jialx 2 ปีที่แล้ว

    Damn this video has worldstar street fight levels of shakiness.

    • @jialx
      @jialx 2 ปีที่แล้ว

      And how blurry .. im ded

  • @saturninomonteiro884
    @saturninomonteiro884 ปีที่แล้ว

    first one: return string [ : : -1 ] #I dont have time to iterate
    second one: return sum ( sum ( j for j in arr [ i ] ) for j in range ( len ( array ) )
    third: return *sorted( [ [ f ' { i } { j } ' for j in arr if i + j == sum ] for i in arr ] ) [ - 1 ] )

  • @blockshift758
    @blockshift758 2 ปีที่แล้ว +1

    Me learning brainfuck just in case

  • @kimjongun3890
    @kimjongun3890 2 ปีที่แล้ว

    the dude that went like c c# c+ c++ was hilarious

  • @eproulx
    @eproulx 2 ปีที่แล้ว +2

    @2:40 c+ is not a programming language

  • @Jazzified11
    @Jazzified11 8 หลายเดือนก่อน

    I am just done with the first semester in my cs major and all these are super easy to do but i understand if you did harder stuff the chances of finding someone solving them is too low

  • @ani68
    @ani68 2 ปีที่แล้ว +1

    Next time ask them sudoko solver from leetcode...to save your money...😂😂😂😂😂😂

  • @yasina63
    @yasina63 2 ปีที่แล้ว

    Wow, interesting I'm a 3rd year CS student.
    Watching from Ethiopia.

  • @tanmaymishra3639
    @tanmaymishra3639 3 ปีที่แล้ว +5

    Do it in India, I'll probably leave my job and keep earning 100 bucks everyday by solving your coding problems lol 😂. Jokes apart I liked the concept of your video.👍

    • @arnavvv2279
      @arnavvv2279 3 ปีที่แล้ว

      Bhaiya from should I start coding ?

    • @Burhan-c7z
      @Burhan-c7z 4 หลายเดือนก่อน

      now there is an Ai which can solve faster than you

    • @Burhan-c7z
      @Burhan-c7z 4 หลายเดือนก่อน

      @@arnavvv2279 no

  • @Andoxico
    @Andoxico 2 ปีที่แล้ว

    "Ah, you see, I've written it in the Whitespace language." (yes it's a real programming language)

  • @cicartaya
    @cicartaya ปีที่แล้ว

    I'm still a beginner/getting close to intermediate programmer in C++. Below are my solutions to his three problems. Idk if they would pass any LeetCode system to count as correct, but they work on my end. Anyway, here you go.
    Code in C++
    1. ReverseString
    #include
    using namespace std;
    void reverseString(const char [ ]);
    int main()
    {
    char str[] = "CODING";
    reverseString(str);

    return 0;
    }
    // Takes in a string and prints the string in reverse to the screen.
    void reverseString(const char str[ ]) {
    int size = 0;
    while (str[size] != '\0')
    size++;

    for (int i = (size - 1); i >= 0; i--)
    cout

  • @koffiegast
    @koffiegast ปีที่แล้ว

    On the top of my head using Python:
    Reverse string:
    def reverseString(s):
    return s[::-1]
    Sum 2D array:
    def sum2d(m):
    return sum( sum(r) for r in m )
    4 programming:
    Python, C, Cobal, C++, Fortran, Heskell, Perl, Java, ...
    TwoSum: (two pass using dict)
    def twosum(a, e):
    ed = {e-v: v for v in a}
    for v in a:
    if v in ed and v!=ed[v]:
    return [v, ed[v]]
    TwoSum: (one pass)
    def twosum(a, e):
    ed = {}
    for v in a:
    if v in ed:
    return [v, ed[v]]
    ed[e-v] = v

  • @70today
    @70today ปีที่แล้ว

    Surprised more ppl didnt keep it basic in C#
    //Question 1
    String random = "Random";
    var reverseString = "";
    foreach (var c in random)
    {
    reverseString = c + reverseString;
    }
    Console.WriteLine(reverseString);
    //Question 2
    int[,] array2D = new int[,] { {1,2,3,4,5 }, { 6,7,8,9,10 }, { 11,12,13,14,15} };
    int sum = 0;
    foreach (var x in array2D)
    {
    sum += x;
    }
    Console.WriteLine(sum);
    //Bonus Question
    int[] array = new int[] { 1,3,5,6,11,25 };
    int target = 9;
    Console.WriteLine(FindNumbers(array, target));
    static string FindNumbers (int[] array, int target)
    {
    foreach (var x in array)
    {
    foreach (var a in array)
    if ((x + a) == target)
    return($"Numbers: {x}, {a}");
    }
    return "No possible match";
    }

  • @allthingstolearn6212
    @allthingstolearn6212 2 ปีที่แล้ว +1

    i wish i was there
    I know Html, CSS, Javascript,Tiny Bit of C# and Python.

  • @SphinxKingStone
    @SphinxKingStone 2 ปีที่แล้ว +1

    I like that "C+" language lol

  • @gomitos8866
    @gomitos8866 2 ปีที่แล้ว

    my brain is going to explode, im going to college in september to have software engineer. Im already watching some tutorials (python) so i can understand the basic but god, its so fucking hard, there are some exercises that are "easy", but still i cant do them (today i was doing 1 and i knew what i had to do, but didnt know how to write it in code, and its so fucking frustating). I hope in college they dont rush the classes. Im studying python and i dont even know if im going to learn python, C or other language, but i think its no problem.
    Btw, did u went to college knowing already programming language???

  • @vader777
    @vader777 3 ปีที่แล้ว +7

    am i the only programmer who also solved the problems and took this challenge personally for some reason ? haha

  • @dizzyaaron
    @dizzyaaron 2 ปีที่แล้ว

    Kenny where have you been my brotha!? Cant belive I am JUST finding out about your channel! Haha! Keep up the videos brotha! Great production quality!

  • @purdysanchez
    @purdysanchez 2 ปีที่แล้ว

    Solve this problem with real syntax on a 1 sqft whiteboard space. Smart.

  • @eieihan2302
    @eieihan2302 2 ปีที่แล้ว +1

    That’s how you give your home work to your friends 😁

  • @pkillor
    @pkillor ปีที่แล้ว

    It's interviewer boy:
    He approaches an older lady and asks her.would you know how to code this problem?
    Older lady: Of course I do, (pulls out her cell phone and talks to her)
    "chatGPT, listen , I want you to code what the young man is going to tell you next.. "

  • @FaeRhanX
    @FaeRhanX 2 ปีที่แล้ว

    The first question my head produced was "in which time complexity can I do it?"

  • @_wetmath_
    @_wetmath_ 2 ปีที่แล้ว +2

    3:37 wait C+ is a language? fr?

  • @fitto9718
    @fitto9718 ปีที่แล้ว

    A programmer won't go for a walked they're always trapped in their vacant's home every times a year

  • @MouseWanted
    @MouseWanted 2 ปีที่แล้ว

    3:25 glad he didn't say assembly

  • @Dailyfunctionalprogramming
    @Dailyfunctionalprogramming ปีที่แล้ว

    If you’d like to learn to code, I have several coding videos and also a playlist dedicated to solving programming questions that big companies such as Amazon or Facebook would ask.

  • @angelsaucedo2231
    @angelsaucedo2231 2 ปีที่แล้ว

    LOL "im good man" was the meekest attempt at not taking money

  • @riyansh3396
    @riyansh3396 2 ปีที่แล้ว

    2 for loops, cant we reduce the complexity, we can sort it and apply something like we do in Binary search, i.e. add two nums i.e. upper and lower and check whether the sum is greater or small and likewise proceed forward

  • @LionKimbro
    @LionKimbro ปีที่แล้ว

    “Red, REBOL, Forth, and APL.” Or: “BASIC, LOGO, Scratch, LISP.”

  • @sethlawson8544
    @sethlawson8544 2 ปีที่แล้ว

    Python strings are subscriptable, so to reverse a string just count backwards! Your_string[ : : -1]

  • @drygordspellweaver8761
    @drygordspellweaver8761 2 ปีที่แล้ว

    You gotta give that guy extra for the try: except clause lmao

  • @atlantic_love
    @atlantic_love 11 หลายเดือนก่อน

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

  • @TheFinalChapters
    @TheFinalChapters ปีที่แล้ว +1

    This is Elon Musk with Twitter right now.

  • @Rajivrocks-Ltd.
    @Rajivrocks-Ltd. 2 ปีที่แล้ว

    You know you hittin' up a real one when he starts up with FORTRAN but follows that bitch up with COBAL xDDDD MVP

  • @lacyx7923
    @lacyx7923 8 หลายเดือนก่อน

    why not just string[::-1] for the first one?

  • @TheThursty100
    @TheThursty100 ปีที่แล้ว

    Name four programming languages
    C is already three and since # is Microsoft java, just throw that in there
    But naming something like Piet, now that would've been fun

  • @OPTIONALWATCH
    @OPTIONALWATCH 2 ปีที่แล้ว

    This is in Chicago. I would've tried it in Fortran

  • @Elbasura774
    @Elbasura774 ปีที่แล้ว

    not double for loop, nested for loop

  • @vaap
    @vaap ปีที่แล้ว

    That O(n) twosum was cool to see tbh

  • @corv2731
    @corv2731 ปีที่แล้ว

    Wow, I was seriously doubting my skills as a programmer until I saw that last guy lol. I am a very amateur novice level Python programmer, but that guy's code was WAY over-complicated... which is usually what I am guilty of doing! I thought my code was gonna be too long, but it was way easier to just create an empty set, loop through the list/array, set a variable x=9, and for each number (n) in the list, if x does not = n and x is in the array of numbers, then add x and n to the empty set. Then print the set. Done, super easy, using only really basic python. I don't even know what a hash map is lol I'm hella basic, but I feel a little better about my progress now!

    • @asiamies9153
      @asiamies9153 ปีที่แล้ว

      Many people resort to using a nested for loop as a solution to this problem, resulting in a time complexity of O(n^2). However, the hash map approach is more efficient. It is regarded as the optimal answer as it achieves a time complexity of just O(n)

  • @thegamechanger7157
    @thegamechanger7157 2 ปีที่แล้ว

    That's kind of you, in Facebook you can't be wrong you get bullied

  • @smartios5109
    @smartios5109 2 ปีที่แล้ว +1

    I am a user linux and i have question what is that green sticks on the floor and some npcs and big green stuff

  • @pyrytheburger3869
    @pyrytheburger3869 2 ปีที่แล้ว

    im currently trying to learn programming and i didnt understand how to solve any of the problems. great.

  • @Ken.-
    @Ken.- ปีที่แล้ว

    write a program to add the digits from 1 to 15.
    x = 120

  • @seriously404
    @seriously404 ปีที่แล้ว

    3:46 he named 5 languages so he should have received 25 bucks ;)

  • @pradipacharya3168
    @pradipacharya3168 ปีที่แล้ว

    Beginner coder here: for the sum of the 2D array, would you crate a double for loop and a if statement inside it to check if ex. i+j= sum (sum being the value stated).

    • @Neeral_
      @Neeral_ ปีที่แล้ว +2

      that works but thats O(n^2) time complexity. His hashmap is O(n) so its more optimal

    • @DrRiq
      @DrRiq ปีที่แล้ว

      Yeah that's what I did because I don't know hashmaps :'(

    • @wizardsuth
      @wizardsuth ปีที่แล้ว

      @@Neeral_ For a set of small whole numbers (e.g. 0 to 31) a bit map might be more efficient than a hash map. As you iterate over the array, check the bitmap for the matching value. If it's present, you're done. Otherwise, set the bit corresponding to the current value. This solution is O(n) and does not require creating a hash map or hashing any values.
      int[] arr = {2, 3, 5, 6, 8};
      int sum = 9;
      long bitmap = 0L;
      for (int i = 0; i < arr.length; i++) {
      if ((bitmap & (1

    • @asiamies9153
      @asiamies9153 ปีที่แล้ว

      @@Neeral_ Wasn't the hashmap for the final problem, not the 2D array?

  • @webprica3725
    @webprica3725 ปีที่แล้ว

    str.split('').reverse().join('') - for one word length string

    • @webprica3725
      @webprica3725 ปีที่แล้ว

      for longer just change split and join from "" to " ". Am I right js programmers ?🤣

  • @someiranian1840
    @someiranian1840 2 ปีที่แล้ว

    20 bucks for trying
    20000 bucks for a failed class

  • @mobzi2644
    @mobzi2644 ปีที่แล้ว

    3:35 have you ever heard something about C+ ?

  • @Dfeneck
    @Dfeneck 2 ปีที่แล้ว

    "List programming languages"
    Most people list scripting languages. lol

  • @EdenResolve
    @EdenResolve 2 ปีที่แล้ว

    People are straight scared when you ask them to do basic programming.

  • @rajiruarts6247
    @rajiruarts6247 2 ปีที่แล้ว +2

    I really enjoy this vid❤️❤️❤️ im so happy seeing these people coding❤️ btw I'm an IT major☺️

  • @mikesaroglou4999
    @mikesaroglou4999 ปีที่แล้ว

    that's how zlaner's son will look like

  • @CR33D404
    @CR33D404 ปีที่แล้ว

    Bro i didn’t knew that programming get you money, i wished i was there 😢

  • @MarkIsAsleep
    @MarkIsAsleep 2 ปีที่แล้ว

    3:24 now thats a programmer 😆

  • @krenko-1962
    @krenko-1962 ปีที่แล้ว

    3:36 ... did that girl just steal the $20 he won?

  • @THB_DX
    @THB_DX 2 ปีที่แล้ว

    answer to the sum question is hilariously short in python:
    sum2d = lambda a: sum(sum(x) for x in a)

  • @mykalimba
    @mykalimba ปีที่แล้ว

    3:36 Party foul! There is no C+ language!

  • @parthsavyasachi9348
    @parthsavyasachi9348 2 ปีที่แล้ว

    Code early??
    My son in second grade wants to learn to program. He can do some of the problems asked early on in the video.
    But the thing is that just yesterday have to tell him not to learn since childhood never comes back and he shall play. So he is not allowed to code early.
    I tell him to learn to solve problems and not worry about all this programming stuff.

  • @Ken.-
    @Ken.- ปีที่แล้ว

    How do I check if that's real?
    When you need to ask the person handing you the money for the verification method, your system is flawed.