google interview question, keep it simple

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adultnet
    Confirmed User
    • Sep 2003
    • 8713

    #1

    google interview question, keep it simple

    google interview quiz,
    Write a function that receive 7 or 4 and returns 4 if received 7 or returns 7 if received 4
    keep it simple and try be creative


    TrafficCashGold Paying Webmasters Since 1996!

    Awesome Conversions! Fast Weekly Payments! Over 125 Tours!
  • OutToLunch
    Confirmed User
    • May 2008
    • 157

    #2
    which came first, the chicken or the egg?

    Comment

    • fris
      Too lazy to set a custom title
      • Aug 2002
      • 55679

      #3
      how many douchebags does it take to setup a geocities site
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

      Comment

      • Adultnet
        Confirmed User
        • Sep 2003
        • 8713

        #4
        Originally posted by OutToLunch
        which came first, the chicken or the egg?


        TrafficCashGold Paying Webmasters Since 1996!

        Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

        Comment

        • sniperwolf
          Too lazy to set a custom title
          • Mar 2005
          • 17743

          #5
          Chicken?

          ~Accepting design works~

          Comment

          • Adultnet
            Confirmed User
            • Sep 2003
            • 8713

            #6
            Originally posted by sniperwolf
            Chicken?

            yes


            TrafficCashGold Paying Webmasters Since 1996!

            Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

            Comment

            • Adultnet
              Confirmed User
              • Sep 2003
              • 8713

              #7
              Originally posted by Fris
              how many douchebags does it take to setup a geocities site
              its six


              TrafficCashGold Paying Webmasters Since 1996!

              Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

              Comment

              • Azoy?
                Confirmed User
                • Aug 2005
                • 2178

                #8
                ok that was interesting.
                takes a couple of if statements but doesn't seem that challenging.

                Comment

                • Adultnet
                  Confirmed User
                  • Sep 2003
                  • 8713

                  #9
                  Originally posted by Azoy?
                  ok that was interesting.
                  takes a couple of if statements but doesn't seem that challenging.
                  you can say:
                  If num=4 return 7
                  if num=7 retun 4

                  but now try to solve it with no if statements


                  TrafficCashGold Paying Webmasters Since 1996!

                  Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

                  Comment

                  Working...