<aside> 💡

Admin ~ Manohar Gella

The material below is made by my self while I was learning competitive programming and DSA, the collection of problems are picked after careful research and testing.

ProblemSet - 1

ProblemSet - 1 CodeChef

ProblemSet - HackerRank

</aside>

Topic Name Sub-Topics Problems
C++ - Base Intro Welcome for you with Conditions(1)
C++ Basics Multiples(1)
Online Judges Digits Summation(2)
The Brothers(2)
Comparison(3)
Max and min(3)
Memo and momo(4)
Ali baba and Puzzles(4)
Watermelon(5)

Basic Structure

#include <iostream>
using namespace std;

int main(){
	cout << "Hello World";
	return 0;
}

Comments in c++

#include <iostream>
using namespace std;

int main(){
	cout << "Hello World";
	// this is a single line comment
	/*
		this 
		is 
		a
		multiline
		comment
	*/
	return 0;
}

End line

#include <iostream>
using namespace std;

int main(){
	cout << "Hello World \\n";
	// will take less time to compile
	cout << "Hello World" << endl;
	// will take little more time to compile
	return 0;
}

// ? What if wanted to print - \\n itself then we use \\\\ slash to escape
// the sequence

Data Types

#include <iostream>
using namespace std;

int main(){
	int a = 10; // integer data type
	float rate = 3.33; // float/decimal - *till upto 2 decimal places*
	double Rate = 4.555 // double data - *till upto 7 decimal places*
	char grade = 'a'; // cahracter datatype - *only single quotes allowed*
	return 0;
}

Variable value printing

#include <iostream>
using namespace std;

int main(){
	int a = 20
	cout << a << "\\n";
	
	char grade = 'A';
	cout << "Your grade is " << grade << "\\n";
	return 0;
}

Printing