Microsoft |Onsite| Site Reliability Engineer (SRE)
Anonymous User
2186
** Q-1**
 
char* itoa(int i);
 EX- 1234  convert to "1234" 
 
** Q -2**
 Sort the given special arr[]
input-      2 0 0 1 2 0 2 1 0 1 0
output -    0 0 0 0 1 1 1 2 2 2 2

**Q -3**

Given a sorted string print the element 'n'

#Note - please give the solution with O(n) or O(log n)

string =  c j k l n u y z

#Hint - Basically the string is sorted. 

**Q -4**

You have a log file. Input file format as below.
first column is timestamp and second column is latency.
input -
            0 10
            1  5
			0  20
			2  30
			1  15
			
please print the output in which timestamp you have more latency.
output will be in below format -

0 20
1 15
2 30

Comments (3)