c*****d 发帖数: 59 | 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.
我 | c****s 发帖数: 241 | 2 祝福楼主
【在 c*****d 的大作中提到】 : 一个大公司,电话面试,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
| s***l 发帖数: 129 | 3 你们id有点像
bless lz
【在 c****s 的大作中提到】 : 祝福楼主
|
|