- Time:O(|\texttt{special}||\texttt{needs}|k), where k = \text{max of needs} = 6
- Space:O(6)
C++ |
---|
|
JAVA |
---|
|
Python |
---|
|
C++ |
---|
|
JAVA |
---|
|
Python |
---|
|