摘要: Given a blacklist B containing unique integers from [0, N), write a function to return a uniform random integer from [0, N) which is NOT in B. Optimiz 阅读全文
posted @ 2018-10-31 18:32 Veritas_des_Liberty 阅读(307) 评论(0) 推荐(0) 编辑
摘要: Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each other are not the same. If possible, output 阅读全文
posted @ 2018-10-31 16:55 Veritas_des_Liberty 阅读(247) 评论(0) 推荐(0) 编辑