Interview at Google soon. Quick question, please HELP

Amazon / Eng idk_
Jun 11 10 Comments

My interview is this Friday. I’m just wondering do I need to know while loops and do while loops or is just a solid understanding of for loops adequate?

Please help :/

comments

Want to comment? LOG IN or SIGN UP
TOP 10 Comments
  • Google autebe
    I’m sure you’re out of the loop
    Jun 11 2
    • Amazon / Eng idk_
      OP
      How many while loops did you have to implement?
      Jun 11
    • Facebook
      ◽️◽️◽️◽️◽️◽️◽️◽️◽️

      Facebook

      PRE
      Google
      ◽️◽️◽️◽️◽️◽️◽️◽️◽️more
      One or two infinite loops, or one with recursion is standard.

      If your loops are too short they might ask a more complicated follow-up.
      Jun 11
  • Google MLE
    no need for while and for loops

    goto/jump shall suffice
    Jun 11 0
  • Facebook
    ◽️◽️◽️◽️◽️◽️◽️◽️◽️

    Facebook

    PRE
    Google
    ◽️◽️◽️◽️◽️◽️◽️◽️◽️more
    Goto usually impresses the most.

    For cross-subroutine branches, check out setjmp/longjmp.
    Jun 11 0
  • eBay ghsoibv
    Haha.. good one. Made my day😂😂
    Jun 11 0
  • do{
    while(idiotic_prank) {
    for(int i=0; i<(1/0); i++) {
    printf(“Jobless\n”);
    }
    }
    }while(!stupid);
    Jun 11 1
  • Amazon LAxL08
    Only noobs use while loops. Anything can be implemented as a for loop
    Jun 11 0
  • New / Eng Hoik
    Run a fork bomb
    Jun 11 0