Tag: C++

In-place vs out-of-place algorithms

All algorithms can be classified into in-place and out-of-place algorithms based on the amount of extra space used by them. In this quick article, we’ll explore the difference between the two.

Reverse a string in-place in C++

This post provides an overview of some of the available alternatives to reverse a string in-place in C++ using simple for-loop, iterators and std::reverse algorithm.

Reverse a string in C++

This post provides an overview of some of the available alternatives to reverse a string in C++ without modifying the original string.

Difference between an argument and a parameter

The terms parameter and argument are used interchangeably by vast majority of programmers but they both have different meanings. In this post, we will see the difference between an argument and a parameter.

Join two arrays in C++

In this post, we will discuss how to join two arrays into a new array in C++. The new array should contain elements of first array followed by elements of the second array, in the same order.