Simple Blockchain Example in Java April 22, 2021 blockchain, java No Comments Blockchain is a hot topic – and we’ll use simple Java code to illustrate the idea. First, we need to define a Block class that is basically a Node … [Continue Reading...]
How to Design a First Unique Number Class with O(1)? April 30, 2020 algorithms, c / c++, data structure, design questions No Comments You have a queue of integers, you need to retrieve the first unique integer in the queue. Implement the FirstUnique class: FirstUnique(int nums) Initializes the object with the numbers … [Continue Reading...]