Courses
Sale
Tutorials
Practice
Jobs
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Practice Questions for Recursion | Set 6
Question 1Consider the following recursive C function. Let len be the length of the string s and num be the number of characters printed on the screen. Give the relation b...
Read More
Misc
Recursion
DSA
Output of C++ Program | Set 9
Predict the output of following C++ programs. Question 1CPP template class S, class T class Pair{private: S x; T y;/* ... */};template class S class Eleme...
Read More
C++
CPP-Output
A Boolean Matrix Question
Given a boolean matrixmatwhere each cell contains either 0 or 1, the task is to modify it such that if a matrix cell matrix[i][j] is 1 then all the cells in its ithrow and...
Read More
Matrix
DSA
Arrays
Amazon
Morgan Stanley
VMWare
SAP Labs
Ola Cabs
FactSet
Boomerang Commerce
Output of C Program | Set 22
Predict the output of following C programs.Question 1:C #includestdio.hint main(){ enum channel {star, sony, zee}; enum symbol {hash, star}; int i = 0;...
Read More
C Language
C-Output
Local Classes in C++
A local class is a class declared inside a function. It is visible only within the function in which it is declared and is commonly used when a class is required only for ...
Read More
C++
Size of an Empty Class in C++
When the structure was introduced in C, there was no concept of Objects at that time. So, according to the C standard, it was decided to keep the size of the empty structu...
Read More
C++
Trie Data Structure
The Trie data structure is used to store a set of keys represented as strings. It allows for efficient retrieval and storage of keys, making it highly effective in handlin...
Read More
Advanced Data Structure
DSA
Trie
Amazon
D-E-Shaw
FactSet
Const Qualifier in C
The qualifier const can be applied to the declaration of any variable to specify that its value will not be changed (which depends upon where const variables are stored, w...
Read More
C Language
pointer
C-Storage Classes and Type Qualifiers
Functions that are executed before and after main() in C
With GCC family of C compilers, we can mark some functions to execute before and after main(). So some startup code can be executed before main() starts, and some cleanup ...
Read More
C Language
C-Functions
Templates and Default Arguments
Default parameters for templates in C++:Like function default arguments, templates can also have default arguments. For example, in the following program, the second para...
Read More
C++
C / C++ Program for Subset Sum | Backtracking-4
Write a C/C++ program for a given set[] of non-negative integers and a value sum, the task is to print the subset of the given set whose sum is equal to the given sum.Inpu...
Read More
C++
Subset Sum Problem using Backtracking
Given a set[] of non-negative integers and a value sum, the task is to print the subset of the given set whose sum is equal to the given sum.Examples:Input:set[] = {1,2,1}...
Read More
Backtracking
DSA
Amazon
Adobe
Drishti-Soft
subset
Output of C Program | Set 21
Predict the output of following C programs. Question 1C #includestdio.h#define fun (x) (x)*10int main(){ int t = fun(5); int i; for(i = 0; i t; i++) ...
Read More
C Language
C-Output
Output of C++ Program | Set 8
Predict the output of following C++ programs. Question 1CPP#includeiostreamusing namespace std;class Test1{ int x;public: void show() { }};class Test2{ int x;pub...
Read More
C++
CPP-Output
Design and Implement Special Stack Data Structure
Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should retur...
Read More
Stack
DSA
Amazon
Adobe
VMWare
Paytm
Linkedin
STL
1
...
12122
12123
12124
...
12127