Skip to content

Instantly share code, notes, and snippets.

View majedsiefalnasr's full-sized avatar
🎯
Focusing

Majed Sief Alnasr majedsiefalnasr

🎯
Focusing
View GitHub Profile
#include<iostream>
using namespace std;
class stack{
private:
struct node{
int data;
node *next;
};
#include <iostream>
#include <stack>
#include <string>
using namespace std;
// Simply determine if character is one of the four standard operators.
bool isOperator(char character) {
if (character == '+' || character == '-' || character == '*' || character == '/') {
return true;
@majedsiefalnasr
majedsiefalnasr / Polynomial expression with Linked list.cpp
Created May 12, 2017 16:28
Polynomial expression with Linked list
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
struct node{
int Coefficient_field;
int Exponent_field;
struct Node{
int index;
string data;
Node *next;
};
void st_Node(Node *head, int index, string data){
head->index = index;
head->data = data;
head->next = NULL;
@majedsiefalnasr
majedsiefalnasr / LZ77_78_W.cpp
Last active May 12, 2023 06:04
LZ 77 - LZ 78 - LZW c++ code
/*********************************************************************
LZ 77, 78, W Algorithms
-------------------
_
___ ___ __| | ___ _____ ___ __ ___
/ __/ _ \ / _` |/ _ \ / _ \ \/ / '_ \ / _ \
| (_| (_) | (_| | __/ | __/> <| |_) | (_) |
\___\___/ \__,_|\___| \___/_/\_\ .__/ \___/
|_|