Singleton Design Pattern in Java

By Yogesh Agarwal

Singleton Design Pattern in Java is used to restrict the instantiation of a class of which we want to create not more than one instance, that can also be utilized by any other cla.... Read More

Sorting a stack using stl in C++

By Ekta Sharma

In this tutorial, we will learn how to sort a stack using stl in C++. Hence first we will learn about stl. Tutorial to sort a stack using standard template library in C++ STL stand.... Read More

Flow control in try-catch-finally in Java

By Caushik Subramaniam

An Exception is an unexpected event that might occur during the execution of a program. An unhandled exception can terminate a program abruptly. A try-catch block is meant to handl.... Read More

list of objects vs list of pointers in C++

By Arpit Jain

Hi guys, today we will talk about the topic list of objects vs list of pointers in C++. Before moving to the differences, let us discuss what is a list and what is a linked list. L.... Read More

Matrix Data Type Rectification in Python

By Anirudh Singh Sengar

Sometimes while giving data as an input we pass the numbers in string type. Later we come to know that we need the numbers in int or float type instead of a string. At this time th.... Read More

Extract Synonyms and Antonyms using Python NLTK library

By Anirudh Singh Sengar

Natural Language Toolkit(NLTK) was created by George Miller and Christiane Fellbaum of Princeton University. It is a module that gives us a platform to build Python programs. These.... Read More

C++ Program to Change RGB to HSV color model

By Palani M

In this tutorial, we will learn how to change RGB color model to HSV color model using a C++ program. Colors form a very important part of computer graphics. The way define colors .... Read More

K Centers problem in C++

By Nimish Dham

The K Centers problem says that given a number of cities n, select k centers such that the maximum distance of a city from a center is minimized. This problem is a well-known probl.... Read More