This commit is contained in:
Joaquin Gottlebe
2025-07-30 15:57:48 +02:00
parent e49fcfac46
commit a639c34cee
273 changed files with 20151 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
// hastable
#include<ctype.h>
typedef struct node {
char *name;
char *number;
struct Node *next;
} Node ;
node *table[26];
unsigned int hash(const char *word){
return toupper(word[0]) - 'A';
}
// tries
typedef struct node{
struct node *children[26];
char *number;
} Node;
node *trie;