Skip to main content

Posts

Showing posts from 2015

RVM install ruby on linux

Restoring grub video tutorial in malayalm language with english subtitle

This video tutorial is for restoring grub by being erased when installing windows after linux . This can restored by some simple steps.You only need a live cd of particular version of architecture.


Linux

Linux (i/ˈlɪnəks/LIN-uks[5][6] or, less frequently used, /ˈlnəks/LYN-uks)[6][7] is a Unix-like and mostly POSIX-compliant[8] computer operating system assembled under the model of free and open-source software development and distribution. The defining component of Linux is the Linux kernel,[9] an operating system kernel first released on 5 October 1991 by Linus Torvalds.
source - Wikipedia

Singly LinkList and its Basic operations

Singly LinkList consist of a number of nodes in which each nodes has a next pointer to the following element . The List of the last node in the list is NULL which indicates the end of the List.
Basic operations on a List

Traversing the list.
Inserting an item in to the list.
Deleting a item from the list.


For creating declaration for a link nodes to create linklist.
classLink{privateintdata;privateLinknext;publicLink(intdata){this.data=data;}publicintgetData(){returndata;}publicvoidsetData(intdata){this.data=data;}publicLinkgetNext(){returnnext;}publicvoidsetNext(Linknext){this.next=next;}publicvoiddisplayLink(){System.out.print(getData()+" ");}}
Traversing is basically displaying the known nodes.
We also do the same operation for two purposes one is to display the nodes and other is to take size of the entire List.
follow the pointers .
Display the contents of the node or count as they are traversed .
Stop the next pointer points to Null .

creating a method for display li…