Posts

Showing posts with the label Linked List

The Ultimate List Of Educational Websites

Image
Deviations from traditional learning models are often met with resistance, while introducing new technologies or methods often rely on systemic change. Despite challenges, online learning is making tremendous progress when it comes to infiltrating all pillars of education, from corporate learning to higher education, to K-12 schooling. Leaders in these spaces have discovered some significant ways in which online learning is better than in-person learning, and as a result, we’re seeing widespread implementation of connected technology to drive education initiatives. COURSES 1.  Udacity 2.  Coursera 3.  Ureddit 4.  EDX PROGRAMMING 1.  TreeHouse 2.  Code Academy 3.  Learn Code 4.  HTML Dog 5.  Try Python 6.  Ruby Monk 7.  Coding Bat LANGUAGE LEARNING 1.  Duolingo 2.  Memrise 3.  VerbLing VIDEOS 1.  Khan Academy 2.  Academic Earth 3.  Unplug The Tv M...

Reversal Of Linked List

Reversal Of Linked List:- Single Linked List- void reverse(struct node *start) {      struct node *temp,*ptr;      temp=start;      start=Null;      while(temp!=Null)      {           ptr=temp->next;           temp->next=start;           start=temp;           temp=ptr;      } } Circular Linked List- void reverse(struct node *start) {      struct node *temp,*ptr,*first;      temp=start;      first=start;      start=Null;      while(temp!=Null)      {           ptr=temp->next;           temp->next=start;           start=temp;           temp=ptr; ...

Insertion In Linked List

Single Linked List At Begening  void insert(struct node *start , int key) {         struct node *temp,*ptr;          temp = start;         if(temp==NULL)                 printf("Linked List is Empty");         else         {                 ptr= (struct node*)malloc(sizeof(node));                   ptr->data=key;                 ptr->next=temp;                 start=ptr;          } } At End void insert(struct node *start , int key) {         struct node *temp,*ptr;          temp = start;         if(temp==NULL)       ...

Linked List

Image
Linked List A linked list is a set of node where each node has two field data field and address field, where data field contains the information and the address field stores the address of next node.          Linked list is a linear data structure. It uses non-contigous memory allocation scheme . Further we say linked list is a collection of node which uses non-contigous memory. The address field of any node in linked list which consist of "NULL" indicates end of linked list.          Linked list uses dynamic memory allocation which allows your program to obtain more memory space while running, or to release it if it is not required. For dynamic memory allocation we use these functions in C :- 1- Malloc() The name stands for memory allocation. This function reserves a block of memory of specified size and returns a pointer of type (void) which can be casted into pointer of any type. Syntax- ptr = (cast_type*)malloc(Byte_s...