Find a lonely integer

Problem description The problem is the following Given an array of integers, find and print the unique element. For example, [1] should…

Read More

Shuffle an array

If you have an array and you want to shuffle it, how would you implement this? O(n2) The first algorithm is a simple brute force algorithm…

Read More

Reverse a Linked List

If a Linked List is given as 1 → 2 → 3, it should reverse the list like 3 → 2 → 1. You can solve through HackerRank. https://www.hackerrank…

Read More

How to add styles to Jupyter (feat. NBViewer)

Although this method only works in NBViewer, NBViewer is so much faster than GitHub rendering engine and it should be the standard way of…

Read More

Webpack, Typescript, Nodemon, and Node.js

This post is to describe how to use Webpack, Typescript, and Nodemon with Node.js. Why Webpack? Webpack bundles all JavaScript into a single…

Read More