VVishekinvishektoor.hashnode.dev·Sep 3, 2022 · 1 min readTesting for the Hack-A-ThonMy name is vishek patel This is my blog This is my another blog This is the third blog Testing the italics option00
VVishekinvishektoor.hashnode.dev·Sep 24, 2021 · 1 min readStack implementation in C++/C//Stack implementation in C++/C #include <iostream> using namespace std; int top =-1; void push(int * p,int size); void pop(); void print(int *p,int size); int peak(int *p); int main() { int arr[3]; int size=sizeof(arr)/sizeof(arr[0]); p...00
VVishekinvishektoor.hashnode.dev·Sep 15, 2021 · 2 min readCodeChef Flight Luggage ProblemLink to the problem : https://www.codechef.com/problems/AIRLINE Chef has 3 bags that she wants to take on a flight. They weigh A, B, and C kgs respectively. She wants to check-in exactly two of these bags and carry the remaining one bag with her. Th...00
VVishekinvishektoor.hashnode.dev·Sep 15, 2021 · 1 min readTemplate Class and Template Function in C++Template Class in C++ #include <iostream> using namespace std; template <class T> class Vishek { private: T num1; T num2; public: T add(T a,T b); }; template <class T> T Vishek<T>::add(T a, T b){ return (a+b); }...00
VVishekinvishektoor.hashnode.dev·Sep 15, 2021 · 1 min readC++ program to check the element in the ARRAY#include <iostream> using namespace std; void findElement(int*p,int size1,int x1){ for (int i=0;i<size1;i++){ if (p[i]==x1){ cout<<"Voilla!, We found it at index "<<i<<endl; return; } } cout<<"Sorr...00