Top Posts in Python
The swap() function in C++
Introduction In this tutorial, we are going to learn the swap() function in C++ programming language. Swapping is a simple operation in C++ which basically is the exchange of data or values among two variables….
Java 14 Features
Keeping up with the six-month cycle tradition, after the release of Java 13 on September 17, 2019, Java 14, another non-LTS version is scheduled to release on March 17, 2020. Java 14 Features Here’s the….
Convert String to Char Array and Char Array to String in C++
In this article, we will be focusing on the different ways to convert String to char array and char array to String in C++. While dealing with String data, we may need to convert the….
Tokenize a String in C++
In this article, we’ll take a look at how we can tokenize a C++ String. Other languages have a very simple solution, using string.split(). Unfortunately, native C++ does not support this method, so we’ll show….
Find String Length in Python
Introduction In this tutorial, we are going to discuss how we can find string length in Python. A string’s length or size is mainly required while traversing over it or while performing some operations on….
Get Unique Values From a List in Python
In this article, we will be understanding 3 ways to get unique values from a Python list. While dealing with a huge amount of raw data, we often come across situations wherein we need to….
The QuickSort Algorithm – Implementation in C, Java, Python
Introduction Quicksort algorithm is one of the fastest internal sorting algorithms and today we are going to discuss this topic. It is mainly based on the following three main strategies: Split or Partition: Select a….
Vector erase() and clear() in C++ STL
In this article, we will be focusing on two important functions of Vector container provided by STL: erase() and clear(). These generic classes and functions are provided by the C++ Standard Template Library (STL) to….
C/C++ snprintf() – Usage Guide
In this article, we’ll understand the working and the usage of the snprintf() C++ function. The snprintf() function is used to write formatted output to a string. Let’s understand how we can use this function,….
Convert String to Integer and Integer to String in C++
In this article, we will understand how to convert an integer to a string in C++. We often come across situations wherein we need to convert the data type of the input variable from one….