Tag: C++

12
Jul
2017

C# Book Tips

jafhar19 months ago What is the best way to learn c# ? Ebooks or those four or…

11
Jun
2017

Hackerearth Min-Max

code: #include<iostream> #include<cstdio> using namespace std; int main() { int n,flag=0; cin>>n; int a[n]; for(int i=0; i<n;…

11
May
2017

2d Array Explained Perfectly

Vid: code: #include<stdio.h> int main() { int x[4][3]; int i,j; for(i=0; i<4; i++) { for(j=0; j<3; j++)…

13
Feb
2017

A good Array Example

Hackerrank problem: #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main()…

31
Dec
2015

Depth Firtst Search(DFS) Algorithm Explanation and Implementation in C++

Discovery Time and Finishing Time Code: //dfs using adjacency list in directed graph #include<iostream> using namespace std;…

27
Sep
2015

C++ OOP: Constructor Destructor

The class constructor: A class constructor is a special member function of a class that is executed…