Re: aapl iphone销量出问题了 (转载)# Apple - 家有苹果
c*d
1 楼
一个大公司,电话面试,45分钟,onine写code。
问题如下:
1. Given an abstract class of alarm, write a function to use the alarm.
2. Check if a 9x9 Sudoku is valid ( each row, col, subsquare with uniq
numbers ).
我的答案:
1. I wrote with sleep then he asked for non-blocking way. I didn't write
the non-blocking code and just explained using threads.
2. I used a 9x9 matrix as a board, wrote a class. The checking method
itself is using an array for simple hashing to do the check. I finished
the coding, listed testing cases.
我
问题如下:
1. Given an abstract class of alarm, write a function to use the alarm.
2. Check if a 9x9 Sudoku is valid ( each row, col, subsquare with uniq
numbers ).
我的答案:
1. I wrote with sleep then he asked for non-blocking way. I didn't write
the non-blocking code and just explained using threads.
2. I used a 9x9 matrix as a board, wrote a class. The checking method
itself is using an array for simple hashing to do the check. I finished
the coding, listed testing cases.
我