Created
January 14, 2025 10:42
-
-
Save yusufpapurcu/726383173f141caff74855d21e1bc39c to your computer and use it in GitHub Desktop.
burak avl
This file contains hidden or 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 tree{ | |
| int data; | |
| int edge; | |
| struct tree* next; | |
| }; | |
| struct tree* create_node(struct tree* node,int data){ | |
| struct tree* temp=(struct tree*)malloc(sizeof(struct tree)); | |
| temp->next=NULL; | |
| temp->data=NULL; | |
| } | |
| struct tree* insert(struct tree* node,int value){ | |
| edge | |
| if(node==NULL){ | |
| node=create_node(node,value); | |
| } | |
| else{ | |
| return insert(node->next,value) | |
| } | |
| } | |
| int main(){ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment