Skip to content

Instantly share code, notes, and snippets.

View kev-aron-28's full-sized avatar
🏠
Working from home

kev-aron-28

🏠
Working from home
View GitHub Profile
@kev-aron-28
kev-aron-28 / practica.c
Created February 23, 2024 04:34
Practica 1 de compiladores
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
// List of C keywords
const char *keywords[] = {
"auto", "break", "case", "char", "const", "continue", "default", "do",
"double", "else", "enum", "extern", "float", "for", "goto", "if", "int",
"long", "register", "return", "short", "signed", "sizeof", "static",
@kev-aron-28
kev-aron-28 / AlgebraOperators.java
Created June 28, 2023 00:31
Java Algebra Conversor
package com.proyect.utils;
public enum AlgebraOperators {
SELECTION('σ'),
PROJECT('∏'),
UNION('∪'),
INTERSECT('∩'),
DIFF('−'),
CARTESIAN('X'),
RENAME('ρ'),
@kev-aron-28
kev-aron-28 / Lista.c
Created January 12, 2023 03:58
Polinomial
#include "Lista.h"
#include <stdio.h>
#include <stdlib.h>
void mensajes(int e, char msg, int p);
void showPolinomicalExpression(float c, int e);
LISTA crearLista()
{
LISTA L;
L = NULL;
@kev-aron-28
kev-aron-28 / Lista.c
Last active January 16, 2023 00:44
Max distance in Linked list
#include "Lista.h"
#include <stdio.h>
#include <stdlib.h>
void mensajes(int e, char msg, int p);
void showPolinomicalExpression(float c, int e);
LISTA crearLista()
{
LISTA L;
L = NULL;
@kev-aron-28
kev-aron-28 / Lista.c
Created January 9, 2023 01:58
Linked list
#include "Lista.h"
#include <stdio.h>
#include <stdlib.h>
void mensajes(int e, int msg, int p);
LISTA crearLista(){
LISTA L;
L=NULL;
return L;
}
Nodo_Lista *crearNodoLista(){
@kev-aron-28
kev-aron-28 / Stack.c
Created December 13, 2022 23:43
Dynamic stack
#include <stdlib.h>
#include <stdio.h>
#include "Stack.h"
PILA crearPila()
{
PILA S;
S = (PILA)malloc(sizeof(Pila));
if (S == NULL)
{
@kev-aron-28
kev-aron-28 / Queue.c
Created December 13, 2022 22:59
Intersection
#include <stdio.h>
#include <stdlib.h>
#include "Queue.h"
// CREACION DE UNA COLA VACÍA
COLA crearCola(){
COLA C;
C = (COLA)malloc(sizeof(Cola));
if( C == NULL){
exit(0);
@kev-aron-28
kev-aron-28 / Queue.c
Created December 13, 2022 22:35
Palindromic number
#include <stdio.h>
#include <stdlib.h>
#include "Queue.h"
// CREACION DE UNA COLA VACÍA
COLA crearCola(){
COLA C;
C = (COLA)malloc(sizeof(Cola));
if( C == NULL){
exit(0);
@kev-aron-28
kev-aron-28 / Queue.c
Created December 12, 2022 23:47
Ticket problem
#include <stdio.h>
#include <stdlib.h>
#include "Queue.h"
// CREACION DE UNA COLA VACÍA
COLA crearCola(){
COLA C;
C = (COLA)malloc(sizeof(Cola));
if( C == NULL){
exit(0);
@kev-aron-28
kev-aron-28 / Queue.c
Created December 12, 2022 18:59
Queue module
#include <stdio.h>
#include <stdlib.h>
#include "Queue.h"
// CREACION DE UNA COLA VACÍA
COLA crearCola(){
COLA C;
C = (COLA)malloc(sizeof(Cola));
if( C == NULL){
exit(0);