C++ Class Representations

By Ramneeq Sodhi

Here we are going to make our own C++ program to make our own classes. So what is a class? Classes are like building blocks in C++. They are user-defined datatype and they hold the.... Read More

Compute Bigrams Frequency in a String in Python

By Aditya Goyal

In this tutorial, we are going to learn about computing Bigrams frequency in a string in Python. In this, we will find out the frequency of 2 letters taken at a time in a String. F.... Read More

How to convert an iterable to collection in Java

By Aditya Goyal

In this tutorial, we are going to learn how to convert an iterable to a collection in Java. An iterator is used to retrieve elements one by one whereas a collection is a group of o.... Read More

Fetch Elements of a certain range from NumPy array in Python

By Adarsh Srivastava

In this tutorial, we will learn how to fetch elements of a certain range from NumPy array in Python with some basic and easy examples. In many situations, you may have to fetch el.... Read More

Create and use dynamic variable names in JavaScript

By Faruque Ahamed Mollick

Dynamic variables are those types of variables that don’t have any specific name in the code through hard coded. A dynamic variable name is auto-generated while running the p.... Read More

std::distance() in C++

By Keshav J

In this tute, we will discuss about std::distance() in C++. The std::distance() is an in-built function provided in the Standard Library (STL). The std::distance() method is used t.... Read More

Check if a number is Peterson number in Python

By Soham Das

In this tutorial, we are going to learn how to check if a number is a Peterson number or not using Python. But first, what is a Peterson number? Peterson number is that number whos.... Read More

Spam Classification Using PySpark in Python

By Soham Das

In this tutorial, we will build a spam classifier in Python using Apache Spark which can tell whether a given message is spam or not! I have used a classic spam-ham dataset from th.... Read More