You are receiving a bit stream in block sizes=1 byte. Our data is marked by starting 4 bytes = 'AA BB CC DD' but there could 0-32 bits of noise before it and the whole stream could be shifted right by that many places. How do you extract the data you want?
The process took 1 day. I interviewed at Zoran (Sunnyvale, CA) in May 2010
Interview
Write a program which accepts a filename as a command line argument and reverses the contents of the file( ie first character
becomes the last character of the file and so on)
Input: The program takes the file name whose content should be reversed.
Output: The program reverses the contents of the file.
Interview questions [1]
Question 1
Write a program which accepts a filename as a command line argument and reverses the contents of the file( ie first character
becomes the last character of the file and so on)
Input: The program takes the file name whose content should be reversed.
Output: The program reverses the contents of the file.