All Questions
1 question
2votes
1answer
2kviews
Do we include output space in space complexity?
For example. I have a function which generates an array with random numbers. int[] generateNum(int n) { int[] result = new int[n]; /* Logic to generate random number */ ............... ...