摘要:
Resevior Sampling : https://en.wikipedia.org/wiki/Reservoir_sampling 阅读全文
摘要:
Note: 1. Find a increasing digits number. It's kind of longest increasing subsequence but with fixed size. 2. Remember to remove the zeros from beginn 阅读全文
摘要:
This is SO AWESOME solution. 阅读全文
摘要:
Note: 1. 0 could be 10 but not valid for 01. Check edge cases. 2. No number shoud be there as num reduced. 阅读全文