Microsoft Student Partner olurken hedeflerimden biri
olan Microsoft Redmond kampüsünde staj için, mülakat soruları
araştırırken, ilginç sorular buldum. Eğlenceli ve zevkli bu
sorulardan birkaçını sizinle de paylaşmak istiyorum.
- Multiple by 8 without using multiplication or addition.
- Given an array of characters. How would you reverse it. ? How would you
reverse it without using indexing in the array
- Suppose you have an array of 1001 integers. The integers are in random
order, but you know each of the integers is between 1 and 1000
(inclusive). In addition, each number appears only once in the array,
except for one number, which occurs twice. Assume that you can access
each element of the array only once. Describe an algorithm to find the
repeated number. If you used auxiliary storage in your algorithm, can
you find an algorithm that does not require it?
- You have 8 balls. One
of them is defective and weighs less than others. You have a balance to
measure balls against each other. In 2 weighings how do you find the
defective one?
Soruların cevabını hemen vermiyorum. Bakalım kimler ne cevaplar verecek
=)