l*e
1 楼
1. reverse a single linked list
hint: recursive method
requirement: solve it with non-recursive method
2. count bits of "1" in a big byte array, given byte array address and total
bits
requirement: optimize for time
3. count bits of "1" in a byte, loop exactly the same times as bits of "1"
example: count bits of "1" in 0x5, loop exactly twice (as there are 2 bits
of "1")
hint: combine an arithmetic operation and a bit operation
4. design about a system with multiple web crawling servers
5. descr
hint: recursive method
requirement: solve it with non-recursive method
2. count bits of "1" in a big byte array, given byte array address and total
bits
requirement: optimize for time
3. count bits of "1" in a byte, loop exactly the same times as bits of "1"
example: count bits of "1" in 0x5, loop exactly twice (as there are 2 bits
of "1")
hint: combine an arithmetic operation and a bit operation
4. design about a system with multiple web crawling servers
5. descr