שאלות ותשובות - Wet 2 Frequently Asked Questions - Wet 2 Вопросы и Ответы - Wet 2 أسئلة وأجوبة - Wet 2
Last Update: 9.6.2012
- 22.5: Opened FAQ
- 5.6: Added 1,2,3
- 9.6: Added 4,5
1. What can we assume on the ID numbers of the patients? |
Nothing. It might be any number.
|
2. Can we assume that the ID numbers sent to Init are sorted? |
No.
|
3. What should we return from Init if there are two patients with the same ID? |
You should fail and return NULL.
|
4. We want to use Hash Tables in our solutions. How should we choose our hash function? |
You can choose any hash function seen in class that was claimed to give the desired time bounds
|
5. What should GetKthPatient return if k > n ? |
INVALID_INPUT
|