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 …
Search Engine Optimization (SEO) techniques are set to make your website appear on top of search engine results pages (SERP). These are the healthy ways your website can use …
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a letter …