## Priority Queue

A priority queue is like a regular stack or queue data structure, but in addition, each element has a priority associated with it. Elements in…

## Breadth First Traversal in Graphs

Download the full code here: [wpdm_package id=’1308′] Suppose you have a graph as shown below. Let us see how we perform breadth first traversal here: Since…

## Reversing a singly linked list

Download the cod here: [wpdm_package id=’1306′] For reversing a singly linked list, you will need a function with 2 pointers (here n and curr). We…

## Kadane’s Algorithm (The Maximum Subarray Problem)

Download the code here: [wpdm_package id=’1301′] Given an array of numbers, to find the subarray which gives the maximum sum can be solved using Kadane’s…

## FTP Client Program

Download the code here: [wpdm_package id=’1296′] #include<stdio.h> //for C file input/output functions #include<stdlib.h.h> //used here for exit() function #include<string.h> //for using strcmp() function #include<sys/types.h> //contains…

## FTP Server Program

Download the code here: [wpdm_package id=’1299′] #include<stdio.h> //for C file input/output functions #include<stdlib.h.h> //used here for exit() function #include<string.h> //for using strcmp() function #include<sys/types.h> //contains…

## Socket Programming with TCP (client program)

Download the code here: [wpdm_file id=2] #include<stdio.h> //for C file input/output functions #include<stdlib.h.h> //used here for exit() function #include<string.h> //for using strcmp() function #include<sys/types.h> //contains…

## Socket Programming with TCP (server program)

Download the code here: [wpdm_file id=3] #include<stdio.h> //for C file input/output functions #include<stdlib.h.h> //used here for exit() function #include<string.h> //for using strcmp() function #include<sys/types.h> //contains…

## Socket programming with UDP (client program)

Download the code from here: [wpdm_file id=4] #include<stdio.h> //for C file input/output functions #include<stdlib.h> //used here for exit() function #include<string.h> //for using strcmp() function #include<sys/types.h>…

## Socket Programming with UDP(server program)

Download the code here: [wpdm_file id=5] #include<stdio.h> //for C file input/output functions #include<stdlib.h> //used here for exit() function #include<string.h> //for using strcmp() function #include<sys/types.h> //contains…