1 2 3 4

Find distinct prime factors from 1 to n in O((n+q)logn) (for q Queries)

Problem: Find distinct prime factors of a number. You will be asked q times. Naive approach: Find out distinct prime factors for each query. It's inefficient for large number of ...continue

Conversion of BST(binary search tree) pre-order traversal to post-order traversal

Problem Statement: Post-order traversal to be printed from Pre-order traversal of a Binary Search Tree(BST). Prerequisite: BST & traversal A pre-order traversal of a BST is given. In BST, value/data ...continue

Group by a column in a given tabular data

Problem: A tabular data is given, you have to print all the data in the group by some column form. Group by columns refers to all the data entries or ...continue
go lang logo

Install Go-Lang to your local system

Go Programming language, also known as go-lang, a popular programming language introduced by google, gained recognition among new generation programmers in a shorter span of time. Installing Go-lang is much ...continue

Drawing points and lines in OpenGL

OpenGL is cross-language and cross-platform application programming interface(API) for rendering 2D & 3D graphics. Drawing something is easy once you understand how OpenGL works. Points and lines are the primitives ...continue
go lang logo

Goroutine: simple implementation

You might have heard about GoLang a lot in the recent years as it's one of the latest & popular programming languages. There are a thousand reasons for learning GoLang ...continue
visual for the audio chunk

Visualization of a stereo audio chunk or frame using OpenCV & PyAudio implemented in python

Probably you are searching for a code that can visualize audio chunk data. Visualization is crucial for various purposes like analysis, manipulation of audio in the form of chunks. Here, ...continue

Simple face detection using haar feature-based cascade classifier with OpenCV implemented in python

You are probably here for simple code that can be used for face detection using OpenCV, implemented in python, right? OpenCV features both training and detection. Here, we will concern ...continue

Divide first n natural number into minimum number of co-prime subsets

It is to divide the first n natural number into the minimum number of subsets such that each element is pairwise co-prime with every other element from the subset. Let's ...continue

View all posts