Skip to content

Instantly share code, notes, and snippets.

View gcs-abdulwahab's full-sized avatar

Abdul Wahab gcs-abdulwahab

  • 15:59 (UTC +05:00)
View GitHub Profile
@gcs-abdulwahab
gcs-abdulwahab / nestedclass.cpp
Created October 30, 2023 12:21
nested Class
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
class Person {
class Address{
public:
string houseno;
@gcs-abdulwahab
gcs-abdulwahab / Person_Address_example.cpp
Created October 27, 2023 05:48
Association of Person with Address
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
class Address{
private:
string houseno;
string street;
string city;
public:
@gcs-abdulwahab
gcs-abdulwahab / set3.cpp
Last active October 18, 2023 19:49
Set Operations Simplified
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
class Set {
int *ar;
int capacity;
public:
int getCapacity(){
@gcs-abdulwahab
gcs-abdulwahab / Set2.cpp
Last active October 18, 2023 17:03
Set 2.0
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
class Set {
int *ar;
public:
int getCount(){
int count = 0;
@gcs-abdulwahab
gcs-abdulwahab / main.cpp
Created October 12, 2023 05:04
with Deep Copy
#include <iostream>
using namespace std;
class Person {
private :
int x;
int *ip;
public:
Person(int x, int y) {
#include <iostream>
using namespace std;
class Person {
private :
int x;
int *ip;
public:
Person(int x, int y) {
@gcs-abdulwahab
gcs-abdulwahab / main.cpp
Created October 12, 2023 04:58
Dynamic Memory without Deep Copy
#include <iostream>
using namespace std;
class Person {
private :
int x;
int *ip;
public:
Person(int x, int y) {
@gcs-abdulwahab
gcs-abdulwahab / main.cpp
Created October 12, 2023 04:56
Person class with Dynamic Memory
#include <iostream>
using namespace std;
class Person {
private :
int x;
int *ip;
public:
Person(int x, int y) {
@gcs-abdulwahab
gcs-abdulwahab / main.cpp
Created October 12, 2023 04:05
Person Defacult Copy Constructor
#include <iostream>
using namespace std;
class Person
{
private :
int x;
int y;
public:
@gcs-abdulwahab
gcs-abdulwahab / DSA Syllabus for Resit Exam on 10th October 2022
Created October 3, 2022 10:45
DSA Syllabus for Resit Exam on 10th October 2022
Intro to DSA
Arrays : Sparse / Dense Array / Matrix
LinkedList : Singly , Variant , Doubly LinkedList
Stack : and its applications , PostFix / Infix / Prefix conversion and Evaluation using Stack
Queue and its Implementations
DEQUE
Algorithmic Analysis of algorithms : Best , Worst Case
Recursion Tree Analysis