Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Interview Question

Interview Question

Scheduled Pinned Locked Moved The Lounge
tutorialquestioncareer
83 Posts 26 Posters 34 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Rahul VB

    Hello Friends, I went for an interview to a company: they asked me these 2 questions: 1> I have a rope. There is no tool available to measure that rope. I can just measure that rope using time. For example i set it on fire and the rope burns for one hour. a>Now i want to measure the rope for half an hour what to do? b>I want to measure it for 45 minutes. How to do? 2> I have a figure below: :) :) :) :) :) :) :) :) :) :) I want to convert it to: :) :) :) :) :) :) :) :) :) :) You have 2 options: a>Either use 3 smilies at once to rearrange the figure. b>Or use a combination of (2 + 1) smilies to rearrange the figure. which means you have only 1 chance if you use 3 smilies. OR 2 chances if you use (2 + 1) smilies You cant do a 1 + 1 + 1 combination of smilies to rearrange the figure. I was given 15 minutes to solve the above problems. Thanks a ton

    B Offline
    B Offline
    budryerson
    wrote on last edited by
    #74

    1a. Fold in half and fire it up. 1b. Fold in half, fold one half in half, open the folded half and fire it up. 2. Move two from the bottom row up to the second row. Move the top one to the bottom. This is not difficult. Or do I not understand?

    1 Reply Last reply
    0
    • R Rahul VB

      Hello Friends, I went for an interview to a company: they asked me these 2 questions: 1> I have a rope. There is no tool available to measure that rope. I can just measure that rope using time. For example i set it on fire and the rope burns for one hour. a>Now i want to measure the rope for half an hour what to do? b>I want to measure it for 45 minutes. How to do? 2> I have a figure below: :) :) :) :) :) :) :) :) :) :) I want to convert it to: :) :) :) :) :) :) :) :) :) :) You have 2 options: a>Either use 3 smilies at once to rearrange the figure. b>Or use a combination of (2 + 1) smilies to rearrange the figure. which means you have only 1 chance if you use 3 smilies. OR 2 chances if you use (2 + 1) smilies You cant do a 1 + 1 + 1 combination of smilies to rearrange the figure. I was given 15 minutes to solve the above problems. Thanks a ton

      M Offline
      M Offline
      Member 10344585
      wrote on last edited by
      #75

      Question 1: Fold the rope in half for 30 minutes, fold once more and take 3 lengths of the rope to equal 45 minutes. Question 2: No clue for the next question. Can you reword it in away that doesn't show me that English isn't your first language?

      R 1 Reply Last reply
      0
      • M Member 10344585

        Question 1: Fold the rope in half for 30 minutes, fold once more and take 3 lengths of the rope to equal 45 minutes. Question 2: No clue for the next question. Can you reword it in away that doesn't show me that English isn't your first language?

        R Offline
        R Offline
        Rahul VB
        wrote on last edited by
        #76

        Hello Brother,

        Quote:

        Can you reword it in away that doesn't show me that English isn't your first language?

        Firstly, dont try to be sarcastic, insults are not welcome here(You have just joined code project,learn to speak). If you read the post of other senior members you will notice how humble they are and what is the depth and power of their knowledge. If you dint understand the question i apologize for that, i couldnt put it properly.And yes English is not my first language, i stay in India. My mother tongue is Hindi and i am proud of that. With due respect, keeping aside all issues:rose:, its my mistake that i couldnt put that question properly. I will rephrase it for you: Just consider the figure in the second question as a triangle of balls/smilies. You need to invert the triangle. To do that you either have 3 moves or a combination of (2 + 1 ) moves. The word "Move" means to pick up and place the ball in order to re-arrange the entire figure. You either pick up 3 balls together, or first you pick up 2 balls and then one ball or vice versa. Thanks a ton, Rahul

        M 1 Reply Last reply
        0
        • J JamesStewarts

          Fire is just an example of one way of measuring the length of the rope. So for example, tie one end of the rope to a tree and walk away for an hour... how long is the rope - ones hours length of walking long. Go back to the tree and do the same for 30 minutes and 45 minutes, you've got 3 measurements. It's a silly question, so I think silly answers are only fair.

          R Offline
          R Offline
          Rahul VB
          wrote on last edited by
          #77

          Absolutely Brother.

          1 Reply Last reply
          0
          • R Rahul VB

            Hello Brother,

            Quote:

            Can you reword it in away that doesn't show me that English isn't your first language?

            Firstly, dont try to be sarcastic, insults are not welcome here(You have just joined code project,learn to speak). If you read the post of other senior members you will notice how humble they are and what is the depth and power of their knowledge. If you dint understand the question i apologize for that, i couldnt put it properly.And yes English is not my first language, i stay in India. My mother tongue is Hindi and i am proud of that. With due respect, keeping aside all issues:rose:, its my mistake that i couldnt put that question properly. I will rephrase it for you: Just consider the figure in the second question as a triangle of balls/smilies. You need to invert the triangle. To do that you either have 3 moves or a combination of (2 + 1 ) moves. The word "Move" means to pick up and place the ball in order to re-arrange the entire figure. You either pick up 3 balls together, or first you pick up 2 balls and then one ball or vice versa. Thanks a ton, Rahul

            M Offline
            M Offline
            Member 10344585
            wrote on last edited by
            #78

            I didn't try to be sarcastic, I succeeded. Sorry we can't joke around on the internet. We might hurt peoples feelings. :rolleyes:

            R 1 Reply Last reply
            0
            • M Member 10344585

              I didn't try to be sarcastic, I succeeded. Sorry we can't joke around on the internet. We might hurt peoples feelings. :rolleyes:

              R Offline
              R Offline
              Rahul VB
              wrote on last edited by
              #79

              OOPS, I am so so so sorry brother. Actually i was very frustrated brother i couldn't think rationally. It happens sometimes when you dont crack an interview :(( . I am so sorry brother i miss behaved with many people yesterday, even on code project. For the last time please forgive me i was so rude...:rose: By the way if you dont mind me asking: what do you do? i mean are you a student or a professional? Thanks a ton, Rahul

              M 1 Reply Last reply
              0
              • L Lost User

                "Now i want to measure the rope for half an hour what to do?" You burn it from both ends :) They really will end up with expert pyromaniacs in that company.

                R Offline
                R Offline
                Rahul VB
                wrote on last edited by
                #80

                Quote:

                They really will end up with expert pyromaniacs in that company

                :laugh: :laugh: :laugh:

                1 Reply Last reply
                0
                • R Rahul VB

                  OOPS, I am so so so sorry brother. Actually i was very frustrated brother i couldn't think rationally. It happens sometimes when you dont crack an interview :(( . I am so sorry brother i miss behaved with many people yesterday, even on code project. For the last time please forgive me i was so rude...:rose: By the way if you dont mind me asking: what do you do? i mean are you a student or a professional? Thanks a ton, Rahul

                  M Offline
                  M Offline
                  Member 10344585
                  wrote on last edited by
                  #81

                  Don't be sorry, I was just joking again. I take for granted how hard it is to convey sarcasm through text, let alone to a non-native English speaker. I am a Software Engineer. Also, I don't really see why you would be proud of your first language. I'm not proud I speak English, I'm just happy most other countries usually speak it(and that it became the common language of the internet) You didn't choose to speak it, so no reason to make it define you.

                  R 1 Reply Last reply
                  0
                  • M Member 10344585

                    Don't be sorry, I was just joking again. I take for granted how hard it is to convey sarcasm through text, let alone to a non-native English speaker. I am a Software Engineer. Also, I don't really see why you would be proud of your first language. I'm not proud I speak English, I'm just happy most other countries usually speak it(and that it became the common language of the internet) You didn't choose to speak it, so no reason to make it define you.

                    R Offline
                    R Offline
                    Rahul VB
                    wrote on last edited by
                    #82

                    Yes completely I agree. I lost it yesterday :( . Software engineer, thats good. So you are also lost in the world of computers :). Hmmm Welcome to code project brother. Happy coding.

                    1 Reply Last reply
                    0
                    • R Rahul VB

                      Hello Friends, I went for an interview to a company: they asked me these 2 questions: 1> I have a rope. There is no tool available to measure that rope. I can just measure that rope using time. For example i set it on fire and the rope burns for one hour. a>Now i want to measure the rope for half an hour what to do? b>I want to measure it for 45 minutes. How to do? 2> I have a figure below: :) :) :) :) :) :) :) :) :) :) I want to convert it to: :) :) :) :) :) :) :) :) :) :) You have 2 options: a>Either use 3 smilies at once to rearrange the figure. b>Or use a combination of (2 + 1) smilies to rearrange the figure. which means you have only 1 chance if you use 3 smilies. OR 2 chances if you use (2 + 1) smilies You cant do a 1 + 1 + 1 combination of smilies to rearrange the figure. I was given 15 minutes to solve the above problems. Thanks a ton

                      K Offline
                      K Offline
                      KP Lee
                      wrote on last edited by
                      #83

                      Sorry, have no idea how to respond. Fire is a non-linear process, a rope half the length may burn in 56 minutes or it may never burn because there isn't enough fuel to keep the fire burning until the rope is consumed. If you hold your laptop upside down, you've rearranged the smilies as requested without moving any of them. :) (Not really, left/right orientation is swapped too.) The best I could do was 1 move of 1 and

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups