- #1

Franco

- 12

- 0

and encountered a few questions i don't get

can someone help me please?

The following bytes are encountered in a UTF8 stream. What is the corresponding UCS2 code? (Express your answer in hexadecimal)

23 E8 96 BC C2 8B

i don't know wat's UTF8 and UCS2, can't find it in my lecture notes

another question

Express the performance of the following methods using big-Oh notation in terms of the parameter n. Give reasons for your answers.

public void determineComplexity(int n) {

int add = 0;

if (n ==0)

add++

else{

determineComplexity(n/10);

}

}

for this one, is the answer equals

O(n/10)?

if n = 1000

it'll take 3 times before n == 0