delete complete linked list with program and Images,better understanding

If we pass head pointer to Delete Method,it should delete the complete linkedlist.Here Main Logic lies as below Steps Step 1: Store Head element into current element Step 2: Point “next Element” of current element to “next Pointer” Step 3: delete current element Step 4: store next pointer to current element Step 5: move next to next element Step… Read More »

How to Rotate Linked List with Easy 4 Steps,explained with images

Rotate the linked list by “k”th element’s in clockwise in a given linked list. let’s go by few examples Example 1: Input:- 10->20->30->40->50->60 and input k = 4 Output:- 50->60->10->20->30->40 Example 2: Input:- 10->20->30->40->50->60 and input k = 3 Output:- 40->50->60->10->20->30 Here is the Main Logic to follow to solve the Problem ( follow from Step 1 to… Read More »

Delete loop from linked list,made easy with 9 Pictures

Each node will point to next node in the loop.it can form loop if it makes pointing to same node previously.Let’s go by some example. Problem can be solved by using the below technique: We have to take two pointers say ( slow Pointer ) and fast pointer ( 2 times of slow pointer ).first we will find… Read More »

complete c/c++ program to delete middle node from singly linked list

Deleting middle node from singly linked list means deleting the mid element/nth element out of existing linked list. Before we jump into the Algorithm,lets understand main steps in solving the problem.we will go by step by step. Move on… Step 1: Move the Pointer up to “n” th node in linked list. Step 2:   store (n-1)th node… Read More »

12 Linux Rsync Examples,you simply like it,excellent must read it

By word Rsync means remote sync.Rsync command is used to sync two folders locally or remotely across hosts.Rsync has upper hand compared to “scp” command because it uses encryption and decryption while sending and receiving.rsync not only copies data ,it also copies links, devices, owners, groups and permissions from source to the target. rsync command initially copies data… Read More »

15 Linux scp command examples mind-blowing

scp means secure copy.scp is used to copy file’s across hosts without using any other third party tools.I have used “winscp” without knowing the benefit of “scp”.Once,i have started using “scp”,i never look back for transferring the files across hosts. Scp command will be installed with basic Linux OS installation.Along with SSH,it comes as free. Example 1: Simple… Read More »

20 Linux Tar command Examples

By Word expanding Tar means Tape Archive.Tar command is Linux Zip kind of Software,means it is used to zip the files and folders.Like on windows (.zip) files,we have .tar.gz  (or)  .tgz extension on linux.Means,if you find any folder/file with this extension,you called it as a zipped file.Possible extension of linux zipped files are tarball or tar, gzip and bzip.… Read More »

15 Linux awk command examples,Enriching your command on Linux

awk means authors (“Aho, Weinberger, and Kernighan” )  of awk programming language.Awk mostly used for pattern search in multiple files and process the lines.It is not less than programming language. It has Variables,functions as so on.We can write awk scripts and awk commands too. As everyone says,awk reads each line as record like row in table record.With the help… Read More »

20 Linux Sed Command Examples

Linux Sed is stream(buffer) editor.It means it receives data from stdin and process the data and output it to Desktop or some file.Sed process the data in pipe.So,we dont need to give input from file.Any intermediate output can be given to sed pipe command. In simple words,Sed process the file/buffer in pipe.It is used to get portion of… Read More »

15 Linux Cut Command Examples,I Tried it

Linux ‘Cut’ command is text processing command.we get portion of text from file.It will cut of portion of text from a file.All we need to do is mention the column to cut by specifying the delimiter. It is not only used to cut data from text files and also can use on csv files. Let’s go by the… Read More »