This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
struct dugum | |
{ | |
int veri; | |
struct dugum *sonraki; | |
}typedef Dugum; | |
Dugum *kok; | |
void ekle() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
struct dugum | |
{ | |
int veri; | |
struct dugum* sol; | |
struct dugum* sag; | |
}typedef Dugum; | |
Dugum *kok; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct dugum | |
{ | |
int frekans; | |
struct dugum *sonraki[256]; | |
}typedef Dugum; | |
Dugum *kok; | |
int dugumSayisi=0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int stack[10]; | |
int sp=0; | |
void push(int veri) | |
{ | |
stack[sp++]=veri; | |
} | |
int pop() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <time.h> | |
#define UZUNLUK 1000000 | |
int adim=0; | |
void binarySearch(int *dizi,int uzunluk,int aranan) | |
{ | |
struct timespec delay; | |
delay.tv_sec = 0; | |
delay.tv_nsec = 100000000L; //100ms | |
int adim = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#define ALAN 10 | |
char tablo[ALAN][10]; | |
int hash2(int deger) | |
{ | |
int key = (deger*deger) % ALAN; | |
printf("hash2:%d\nindex:%d\n",key,key+1); | |
return key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <limits.h> | |
void listele(int *dizi,int uzunluk) | |
{ | |
for(int i=0;i<uzunluk;i++) | |
printf("%d-",dizi[i]); | |
printf("\n"); | |
} | |
void counting(int *dizi,int uzunluk) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <limits.h> | |
void listele(int *dizi,int uzunluk) | |
{ | |
for(int i=0;i<uzunluk;i++) | |
printf("%d-",dizi[i]); | |
printf("\n"); | |
} | |
void shaker(int *dizi,int uzunluk) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> //printf ve scanf fonksiyonlarini kullanmak için | |
int main() | |
{ | |
int a; //Tek - Çift kontrolü yapilacak degisken |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int mukemmelMi(int sayi) | |
{ | |
int toplam = 0; //Parametre olarak alinan sayinin bölenlerinin toplamini saklamak için | |
for (int i = 1; i < sayi; i++) //1'den sayiya kadar tüm sayi degerleri için döngü |