Calculate mean and standard deviation from a vector in C++

By Bhushan Patil

In this tutorial, we will see how to calculate the mean and standard deviation from a vector in C++. We know that the mean has a formula which is the sum of elements divided by a t.... Read More

Implement a Multi-threaded Quicksort Algorithm in Python

By Pranit Sawant

In this article, we will learn about, The Multi-threaded Quicksort Algorithm. And how to implement it in Python. What is the Quicksort Algorithm? It is an algorithm that is used fo.... Read More

Water Jug Problem in Python

By Anuj Gupta

In this tutorial, we will learn how to solve the two-water jug problem in Python. PROBLEM STATEMENT: You are given two jugs with their capacities(in litres). Your task is to determ.... Read More

Convert a Matrix to a Sparse Matrix in C++

By Swabhiman Mallick

A sparse matrix is a special matrix in which the number of zero elements is higher than the number of non-zero elements. In this tutorial, we will be converting a given matrix inpu.... Read More

Wait for Key Press in Python

By Yathartha Rana

In this tutorial, we will learn how to wait for a key press in input for a specific time in Python. There are certain instances during development when you have to deploy the featu.... Read More

Create a struct node in C++

By Sharath S

Today, I am back with yet another interesting topic – “Creating a custom data structure ( i.e. structures) in C++“. If you are also tired of using the old variabl.... Read More

Format dates inside text views in SwiftUI

By Samim

In this tutorial, I will show how you can format dates inside text views in SwiftUI. In SwiftUI, we can make our app look more appealing by formatting dates in text views. There ar.... Read More

Detect tap and double-tap gestures in SwiftUI

By Samim

In this tutorial, we will see how to detect tap and double-tap gestures in SwiftUI. We can use onTapGesture modifier to handle taps on Views. We can attach tap actions to any view .... Read More