How to Install a Software on Ubuntu | Package Management

A package file is a compressed collection of files necessary to install a software or an application. It also includes metadata about the package such as text description of package...

Kruskal's Algorithm | Minimum Spanning Tree

When edges connects all vertices in a graph and form a tree then it is known as *spanning tree*. While connecting edges no cycle should be formed. A minimum spanning...

Prime Numbers and Sieve of Eratosthenes

A prime number is an integer n > 1 which is only divisible by 1 and n(itself). For example, 2, 3, 5 are prime numbers, but 6, 8, 9 are...

Roy and Code Streak | HackerEarth Challenge

Roy is working on HackerEarth Profile. Right now he is working on User Statistics. One of the statistics data (Code Streak) is as follows:

Amazon Great Indian Festival Sale 2019: Top 10 Laptop Deals

Great Indian Festival sale on Amazon.com starts from 21st Oct to 25th Oct. Products have heavy discounts and cashback offers. There is 10% Instant Discount + Bonus Offer on Axis...

How to Manipulate Bits in C and C++

All data in computer is represented in binary i.e. in 0 or 1. Computers or machines do not understand our languages, they understand bits. Generally programmer do not care about...

Stack Overflow Vulnerability

Stack overflow is a type of buffer overflow vulnerability. When we pour water in a glass more than its capacity the water spills or overflow, similarly when we enter data...

How to create Password list using CUPP tool on Ubuntu

People do not create complex passwords. Their password consists of their name or surname, date of birth, favourite football team etc, so they can remember it easily. There are many...

How to Install graphics.h C/C++ library on Ubuntu

In this post we are going to install graphics.h library on Ubuntu and to use it with gcc or g++ compiler. graphics.h provides access to a simple graphics library that...

C++: Simple Pendulum Animation on Ubuntu Machine

Here is the code to animate simple pendulum on Ubuntu Machine.

C++: Tic Tac Toe

Here is the simple C++ implementation of Tic Tac Toe.

Dijkstra's Algorithm | Single-Source Shortest Path

Dijkstra's algorithm finds shortest paths from the source vertex to all vertices in the graph. The condition for the algorithm is that all edge weights should be non-negative. Thus, Dijkstra’s...