Check if it's a BST

March 12, 2018

Is This a Binary Search Tree? This problem can be solved in HackerRank. Condition No duplicate in the tree. Solution First, we know the…

Read More

Find a lonely integer

March 11, 2018

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

March 10, 2018

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

March 09, 2018

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)

February 18, 2018

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

© 2021 Mo Kweon. All rights reserved.