Skip to content

Category Archives: C++

Pre-requisite: Operator Overloading in C++Given two strings, how to check if the two strings are equal or not, using Operator Overloading. Examples:  Input: ABCD, XYZ… Read More
These are functions which takes unary and binary function object(functors) and returns complement of that function objects. It can be usable in competitive programming to… Read More
C++ is a general-purpose programming language and widely used nowadays for competitive programming. It has imperative, object-oriented and generic programming features. C++ runs on lots… Read More
We will implement trie using smart pointers in C++ and OOP. Here, We have already discussed the implementation of trie data using recursionIn our implementation… Read More
The hash class is default constructible, which means that one can construct this object without any arguments or initialization values. It is used to get… Read More
The C++ language is an object-oriented programming language & is a combination of both low-level & high-level language – a Middle-Level Language. The programming language… Read More
Forward Declaration refers to the beforehand declaration of the syntax or signature of an identifier, variable, function, class, etc. prior to its usage (done later… Read More
These functions do not need to include any header file to use them. So it provides faster usage, as these are Built-in functions of GCC… Read More
We often come around situations where we need to store a group of data whether of similar data types or non-similar data types. We have… Read More
Variables in C++ is a name given to a memory location. It is the basic unit of storage in a program.  The value stored in… Read More
Given a Binary search tree, the task is to implement forward iterator on it with the following functions.  curr(): returns the pointer to current element.… Read More
Given a string str containing lowercase alphabets, the task is to count the sub-strings that contain all the vowels at-least one time and there are… Read More
Most of us have C++ as our First Language but when it comes to something like Data Analysis and Machine Learning, Python becomes our go-to… Read More
In C and C++, comma (, ) can be used in two contexts: Comma as an operator Comma as a separator But in this article,… Read More
Given a binary string S, consisting of 0’s and 1’s. You have to accommodate the 0’s and 1’s into the K buckets in such a… Read More