Singleton Design Pattern in Python

By Taanvi Goyal

Singleton design pattern is a pattern which we use to restrict a class to initialize its various objects. In short, it can be said as a method to define a class, defined in a way t.... Read More

Karger’s algorithm for Minimum Cut in Python

By Taanvi Goyal

Karger’s algorithm is a type of ‘random algorithm’ because every time we run it, it gives out a solution that can not be sure to be the best solution. The Karger&.... Read More

Combinatoric Iterators in Python

By Taanvi Goyal

Combinatoric iterators or generators contain mainly four iterators which can be used to perform combination, permutation and products of the data. These iterators are contained in .... Read More

How we can insert a string into another string in Java

By Siddharth Raja

In this tutorial, we will see a program to insert a string into another string in Java. Consider the user enters two strings and an index value, we need to insert the second string.... Read More

pandas.Dataframe.astype() in Python

By Ayyappa Hemanth

In this article, we are going to learn about a very useful function in Pandas of Python that is astype(). The primary use of this function is to convert datatypes of pandas data fr.... Read More

upper_bound() in C++

By Keshav J

In this tute, we will discuss std::upper_bound() in C++. There are many ways to find the next greater element of a value in a sorted array. The first method is to run a linear loop.... Read More

Rounding off errors in Java

By Shradha Jadhav

In the given tutorial, we are going to learn how to round off errors in Java. In Java, most programs store the result of integer computations in 32 or 64 bits. Several calculations.... Read More

Iterator vs Foreach in Java

By Shradha Jadhav

In the given tutorial, Iterator verses for each loop is explained neatly. Iterator : Iterator belongs to java.util package, which is an interface and also a cursor. Cursors are .... Read More