Posts

Showing posts from 2025

Design an algorithm and c-program to insert a data element into sorted single linear linked list (SLLL).

 Design an algorithm and c-program to insert a data element into sorted single linear linked list (SLLL). Algorithm: Insert sort SLLL. Input: 1) F, address of a first node of sorted list.2) e element to be inserted. Output: F, Updated. Method:  n = getnode() [n].data = e if ( F= = NULL )      [n].link = = NULL  F = n elseif ( e < = [ F ].data ) then [n] .link = F f = n else T = F // check the list for next node while (( [ T ].link ! = NULL ) and ( [ [ T ] . link] . data < e ) ) do      T = [ T ] .link while end [ n ].link = [ T ].link [ T ].link = n if ends if ends Algorithm ends  // C PROGRAM #include <stdio.h> #include <stdlib.h> // Structure of a node struct Node {     int data;     struct Node* link; }; struct Node* F = NULL; // Head of the list // Function to insert a node in sorted order void insertSorted(int data) {     struct Node* newNode = (struct Node*)malloc(sizeof(struct Node))...

RESUME 2025 AUG

MY RESUME 01/08/2025 ========================================================================= PDF version of my resume 1/AUGUST/2025 https://drive.google.com/file/d/1VkKwQNF-m9w2_FiJ7FT0phNeY9MuQWl6/view?usp=sharing ========================================================================== DOC Version of my resume 1/AUGUST/2025 https://docs.google.com/document/d/108WiLLDZo-9l1sgaSSutkQZaE8iIma3g/edit?usp=drive_link&ouid=111069544115391871585&rtpof=true&sd=true ==========================================================================