• Advertisement
Sign in to follow this  

Google Interview Questions

This topic is 2439 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


[quote name='furby100' timestamp='1107964749' post='2903243']
x=2. This equation is satisfied by 2. It follows that there are numbers that satisfy the equation x = 2. From that, it follows that there are numbers. From this simple equation one can settle one of the deepest philosophical questions about mathematics. Certainly a beautiful result.


However, it's almost certain most people will put e[sup]i[font="symbol"]p[/font][/sup] + 1 = 0


What about x=0? That has the same as above, but adds in that there is some number representing no quantity at all.

On the blender:
http://www.realkato....log.php?pid=857

If you suppose that it were somehow physically possible to shrink yourself to that size without diminishing your normal human capabilities, then you should consider that your strength (a function of the area of your cross-section, proportional to the square of your height) has been reduced about 4900 times, but your mass (a function of your volume, proportional to the cube of your height, given that your density remains the same) has been reduced 343000 times. If you currently have a 24-inch vertical leap, you'd still have a 24-inch vertical leap regardless of how small you became. So given those facts, you could simply jump out of the blender.

Another interesting thing to note: you'd actually have what seems to be 70 minutes to come up with the solution, because time would travel 70 times slower for you at that size. The speed of light and the speed of electrons is constant, but when you're tiny, photons and electrons have less distance to travel.[/quote]
[/quote]
I thought since the light has less distance to travel, things would seem faster.....

Share this post


Link to post
Share on other sites
Advertisement

I thought since the light has less distance to travel, things would seem faster.....


You will go faster and the rest of the environment will appear to be slower as, in theory, you should perceive your increased speed to be the same as your speed now.

Share this post


Link to post
Share on other sites

Binary search has worst-case O(logn).
Finding split point is O(n), so finding the point of rotation is several times more expensive than search itself.

Since array is sorted, recursive split can be used to determine which half is out of order. Predicates for binary search are: left < mid < right (equalities optional)

Oooo. I like that. I didn't realize it before.

Share this post


Link to post
Share on other sites

[quote name='Antheus' timestamp='1301427890' post='4791860']
Binary search has worst-case O(logn).
Finding split point is O(n), so finding the point of rotation is several times more expensive than search itself.

Since array is sorted, recursive split can be used to determine which half is out of order. Predicates for binary search are: left < mid < right (equalities optional)

Oooo. I like that. I didn't realize it before.
[/quote]

And in my crusade against spambots, I accidentally downvoted this post. And apparently I cannot undo it. So someone upvote it.

Share this post


Link to post
Share on other sites

And in my crusade against spambots, I accidentally downvoted this post. And apparently I cannot undo it. So someone upvote it.


I thought we were friends :'(

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement