Skip to content

Instantly share code, notes, and snippets.

View StanaAndrei's full-sized avatar
🤓
Thinking

Stana Andrei StanaAndrei

🤓
Thinking
View GitHub Profile
@StanaAndrei
StanaAndrei / client.c
Created January 17, 2025 11:39
cl sv cnt chars
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h> /* See NOTES */
#include <sys/socket.h>
#include <pthread.h>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <unistd.h>
@StanaAndrei
StanaAndrei / comp.sh
Last active January 2, 2025 11:08
omp ex
gcc -fopenmp main.c -o exec
@StanaAndrei
StanaAndrei / client.c
Last active December 26, 2024 19:08
client-server-th
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@StanaAndrei
StanaAndrei / main.cpp
Created December 22, 2024 18:37
net-ninja-tree-challenge
#include <bits/stdc++.h>
using namespace std;
#define EMPTY 'o'
#define TREE_PART '*'
vector<string> buildTree(int n) {
vector<string> ans(n);
for (int i = 0; i < n; i++) {
string line;
@StanaAndrei
StanaAndrei / client.c
Last active December 27, 2024 18:54
client-server-proc-toggle-letters
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define BUFF_SIZE 1024