Author: ACMer
With the advancement of technology, the harddisk capacity is getting bigger and bigger, so is our data. We have important data, and photos, vidoes, which should be regularly backup. …
Given a sequence of n integers arr, determine the lexicographically smallest sequence which may be obtained from it after performing at most k element swaps, each involving a pair …
RxJava (https://github.com/ReactiveX/RxJava) is the Reactive Extension for Java Virtual Machine (JVM). It allows you to develop asynchronous code in the reactive manner. If you come from imperative or OOP, …
Big4 refers to Google, Amazon, Facebook and Microsoft. They are the top internet/software companies that most Software Engineers dream for. The technical interviews consist of Big4 are quite similar: …
Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. Example: MovingAverage m = new MovingAverage(3); m.next(1) = 1 …