Junyu Blog

Salvation lies within.

Diff Array

Diff Array

In this blog, we will talk about one trick can be used to solve problems to do with frequent addition and subtraction to a subsection of an array

SWAP Function

SWAP Function

In this blog, we will look into several ways of implementing swap in different ways.

EMPLACE_BACK in C++

EMPLACE_BACK in C++

There are different type of containers in C++ STL. To add a new element into the back of a container, we normally use `push_back()`. In this blog, we will look into a new way of performing push back - `emplace_back()`.

KMP Algorithm

about KMP Algorithm

In computer science, the Knuth–Morris–Pratt algorithm (or KMP algorithm) is a string-searching algorithm that searches for occurrences of a "word" W within ...