摘要: Given a target integer T, a non-negative integer K and an integer array A sorted in ascending order, find the K closest numbers to T in A. Assumptions 阅读全文
posted @ 2018-12-16 14:52 fatttcat 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the numbe 阅读全文
posted @ 2018-12-16 08:50 fatttcat 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at leas 阅读全文
posted @ 2018-12-16 08:34 fatttcat 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Given a target integer T and an integer array A sorted in ascending order, find the index of the last occurrence of T in A or return -1 if there is no 阅读全文
posted @ 2018-12-16 06:07 fatttcat 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Given a target integer T and an integer array A sorted in ascending order, find the index of the first occurrence of T in A or return -1 if there is n 阅读全文
posted @ 2018-12-16 06:03 fatttcat 阅读(189) 评论(0) 推荐(0) 编辑