@vishektoor
tooring
Nothing here yet.
Nothing here yet.
Sep 24, 2021 · 1 min read · //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...
Join discussionSep 15, 2021 · 2 min read · Link 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...
Join discussionSep 15, 2021 · 1 min read · 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); }...
Join discussion