Whiteboard coding exercise (more trivia from the Jeopardy "Graphics processing category"): - write code for a function to copy a rectangle in an image from one location to another - this is like moving a window in a window manager, but the original window image can be left there - inputs: char [][] image, Rectangle (x,y,width, height) toCopy, Point (x,y) destination - image character array is ok for illustration purposes - 0,0 in top, left - do basic copy process - what happens when the destination is inside the rectangle to copy? - when does the original data get damaged? - add logic to copy the rectangle properly (prevent damage to the image data) - how to erase the original rectangle from the image - this was referred to as the "bit blit" algo - but am not finding a decent example of code for this on the web at first glance Whiteboard coding exercise (even more irrelevant trivia): - write code to solve 9x9 Sudoku (brute force frowned on)
Sigiloso
Again, zero correlation to the job description and obviously ability to solve this question based on a person's experience with image processing - which is literally of zero / very little use for this job especially since they are using software from other companies for any real video analysis / processing. Check for destination point below the image location and copy data from right to left, bottom to top (instead of normal flow) to prevent over-writing the original data before it has been copied.