Skip to content

Instantly share code, notes, and snippets.

View alimkoca's full-sized avatar
🏠
Still working...

Ali Koca alimkoca

🏠
Still working...
  • Home
  • Istanbul, Turkey
View GitHub Profile
@tylergannon
tylergannon / RBTree.rs
Last active March 24, 2025 05:53
Red Black Tree written in Rust
#![allow(dead_code)]
extern crate rand;
use std::cmp::Ord;
use std::cmp::Ordering;
use std::fmt::Debug;
use std::iter::Iterator;
use std::iter::IntoIterator;
use rand::Rng;
@eroltutumlu
eroltutumlu / gist:5299a8d4afc3330722d2
Last active March 1, 2023 05:52
Singly linked list // 2
/*
*http://stackoverflow.com/questions/23317646/why-is-strcpy-unsafe-in-c
We can use strncpy instead of strcpy. It's safer.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_SIZE 10
typedef struct teacherData{