.. (לתיקייה המכילה) | ||
Last Update: 07.04.2012
- 25.03: Added 1.
- 07.04: Added 2.
- 25.03: Added 1.
- 07.04: Added 2.
1. In question 6, function Popular(m): if several items are as popular as each other and we should print one/some of them but not all, which should we print? For example, for Popular(2), if item 1 was sold 10 times and items 2 and 3 were sold 9 times (all other items were sold fewer times), which items should we print? | |
Choose arbitrarily among items of same popularity in such case, so long as you print the m most popular items. For the above example, {1,2} and {1,3} are both legal outputs. |
2. In question 5, can we assume that the length of the array is given? | |
Yes. |