| 10-18-2007, 09:47 AM | #1 |
|
Có lẽ sau chiêu sư tử hống
1. Let 2. How do you compute 3. (from YADD) After each second, an insect may: either die, or survive, or split into 2, or split into 3 (each with probability 0.25). Suppose that there's 1 insect at the beginning of the day, what is the probability that the whole population dies at the end of the day? 4. (Programming) Given 2 variables a and b. How do you swap the values of a and b without using any extra memory? 5. (Blog KHMT) Giả sử (mũ x đến vô cùng). Vậy x bằng bao nhiêu? Ví dụ, ta có thể lý luận như sau. Dễ thấy rằng . Do đó , hay . Nhưng nếu thì, theo lý luận trên, cũng dẫn đến . Sao lạ thế? à?Last edited by Khoa Tran; 10-18-2007 at 09:53 AM. |
|
|
|
|
| 10-19-2007, 06:49 AM | #2 |
|
Core Member
Corporal
Join Date: Jul 2007
Posts: 97
Thanks: 7 Thanked 15 Times in 13 Posts |
1) A cute trick is compute
then take drivative w.r.t. a thrice. 3) It is a bacterium, Khoa. An insect cannot duplicate that fast. The tougher part of the puzzle is justify the solution (i.e., discarding the probability = 100% answer). A clue is realted to puzle 5) below. 5) Let me repharse the question. Define The paradox comes about like this: Rewrite The paradox is resolved as follows: Define [y=4 is a spurious root since some "non-linearity" was introduced in rewriting the definition of y.] An aside observation from the resolution: The maximum value of x such that
__________________
I did it my way - Frank Sinatra |
|
|
|
| The Following User Says Thank You to YADD For This Useful Post: |
Khoa Tran (11-01-2007)
|
| 10-19-2007, 03:56 PM | #3 |
|
Member
Sergeant
Join Date: Jul 2007
Posts: 147
Thanks: 13 Thanked 7 Times in 6 Posts |
4) a = a+b, b = a -b, a = a -b
|
|
|
|
| 10-21-2007, 11:35 PM | #4 |
|
Core Member
Corporal
Join Date: Jul 2007
Posts: 97
Thanks: 7 Thanked 15 Times in 13 Posts |
Follow-up with question (5)...
The function Back to the original question, interestingly, for
__________________
I did it my way - Frank Sinatra |
|
|
|
| The Following User Says Thank You to YADD For This Useful Post: |
Khoa Tran (11-01-2007)
|
| 10-25-2007, 09:29 PM | #5 |
|
Core Member
Corporal
Join Date: Aug 2007
Posts: 58
Thanks: 1 Thanked 1 Time in 1 Post |
4/ what happen if a+b is out of range of the data type?
|
|
|
|
| 10-25-2007, 10:03 PM | #6 |
|
Member
Corporal
Join Date: Jul 2007
Posts: 58
Thanks: 0 Thanked 10 Times in 10 Posts |
The answer should be something along the line of:
a = a ^ b b = a ^ b a = a ^ b And oh yes, a hypothetical follow-up question would be "what about signed numbers, ANSI C convention 'n stuff ?", at which point I would stand up, stab the interviewer, hypothetically of course, with my hypothetical pencil, of course ! |
|
|
|
| 10-25-2007, 10:05 PM | #7 |
|
Member
Corporal
Join Date: Jul 2007
Posts: 58
Thanks: 0 Thanked 10 Times in 10 Posts |
Btw hopefully I'll be able to get back next week with a solution to the n sin(n) question, it shouldn't be that hard !
|
|
|
|
| 11-07-2007, 11:48 PM | #8 |
|
Core Member
Corporal
Join Date: Aug 2007
Posts: 58
Thanks: 1 Thanked 1 Time in 1 Post |
in this question, we have a bar and we will break it in three sections by two cuts. What is the probability that the three sections form a triangular:
1/ if we first cut the bar in two sections (the position is uniformly distributed) and then choose the section (normally the longer section) where you will cut it (the position is uniformly distributed). 2/ you cut the bar at two places simultaneously (the positions ảe uniformly distributed). |
|
|
|
| 11-13-2007, 06:39 AM | #9 |
|
Member
Sergeant
Join Date: Jul 2007
Posts: 147
Thanks: 13 Thanked 7 Times in 6 Posts |
Có 1 câu mới nhớ ra, hồi xưa bị thằng bạn đố, khó phết.
Có 124 con bài (gộp 2 bộ bài lại) và 2 nhà toán học. 1 người thứ 3 cầm lấy bộ bài, lấy ra 5 con bất kì, đưa cho 1 nhà toán học. Ông này ngồi xem xem tính toàn một thôi một hồi, đút lại 1 con vào bộ bài và xếp 4 con ngay ngắn trên bàn. Nhà toán học kia đứng lên nhìn 4 con bài, rồi tìm ra con bài thứ 5 còn lại. Hỏi ông ta làm thế nào? |
|
|
|
| 11-13-2007, 06:42 PM | #10 |
|
Core Member
Corporal
Join Date: Aug 2007
Posts: 58
Thanks: 1 Thanked 1 Time in 1 Post |
given a Brownian motion start from 0
give one presentation of the variable |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Binomial Pricing Model questions | trung55 | Student Lounge | 0 | 10-03-2007 11:51 PM |
| Discrete Math questions | Khoa Tran | Interview Questions | 5 | 08-17-2007 06:52 AM |