Skip to content
Gblog Crack the Coding Interview With GeeksforGeeks Weekly Contest Series
“The difference between ordinary and extraordinary is practice”, quoted by Vladamir Horowitz. What he said was nothing sort of unique as achieving perfection and success… Read More
In C/C++, we can assign a struct (or class in C++ only) variable to another variable of same type. When we assign a struct variable… Read More
Initializer List is used in initializing the data members of a class. The list of members to be initialized is indicated with constructor as a… Read More
Predict the output of below C++ programs. Question 1 #include<iostream>    using namespace std;    class Test {     int value; public:     Test (int v =… Read More
Difficulty Level: RookiePredict the output of below C++ programs.Question 1   C++ #include<iostream> using namespace std;   class Test {     int value; public:     Test(int v); };… Read More
When are the constructors called for different types of objects like global, local, static local, dynamic? 1) Global objects: For a global object, constructor is called… Read More
Let us solve the classic “fake coin” puzzle using decision trees. There are the two different variants of the puzzle given below. I am providing… Read More
Difficulty Level: Rookie Predict the output of below C++ programs. Question 1 #include<iostream> using namespace std;    int x = 10; void fun() {     int… Read More
Question: We have discussed Naive String matching algorithm here. Consider a situation where all characters of pattern are different. Can we modify the original Naive… Read More
In C++, variables are passed by reference due to following reasons:1) To modify local variables of the caller function: A reference (or pointer) allows called… Read More
The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example,… Read More
The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example,… Read More
The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example,… Read More
We have discussed Knight’s tour and Rat in a Maze problem in Set 1 and Set 2 respectively. Let us discuss N Queen as another… Read More
We have discussed Backtracking and Knight’s tour problem in Set 1. Let us discuss Rat in a Maze as another example problem that can be… Read More
We have discussed Backtracking and Knight’s tour problem in Set 1. Let us discuss Rat in a Maze as another example problem that can be… Read More

Start Your Coding Journey Now!