C++ Program to Implement Circular Singly Linked List

Chandu yadav
Updated on 24-Jun-2020 11:53:13
Circular singly linked list is a type of data structure that is made up of nodes that are created using self referential structures. Each of these nodes contain two parts, namely the data and the reference to the next list node.Only the reference to the first list node is required to access the whole linked list. This is known as the head. The last node in the list points to head or first node of the list. That is the reason this is known as a circular linked list.A program to implement circular singly linked list is given as follows.Example Live ... Read More

C++ Program to Implement Doubly Linked List

Arjun Thakur
Updated on 24-Jun-2020 11:51:37
Doubly linked list is a type of data structure that is made up of nodes that are created using self referential structures. Each of these nodes contain three parts, namely the data and the reference to the next list node and the reference to the previous list node.Only the reference to the first list node is required to access the whole linked list. This is known as the head. The last node in the list points to nothing so it stores NULL in that part. Also the doubly linked list can be traversed in both directions as each node points ... Read More

Specify the gap between the columns with CSS

Nishtha Thakur
Updated on 24-Jun-2020 11:50:27
Use the column-gap property to set the gap between the columns. You can try to run the following code to implement the column-gap property, with value 50px:ExampleLive Demo                    .demo {             column-count: 4;             column-gap: 50px;          }                              This is demo text. This is demo text. This is demo text. This is demo text.          This is ... Read More

C++ Program to Implement Stack using array

Ankith Reddy
Updated on 24-Jun-2020 11:50:22
A stack is an abstract data structure that contains a collection of elements. Stack implements the LIFO mechanism i.e. the element that is pushed at the end is popped out first. Some of the principle operations in the stack are −Push - This adds a data value to the top of the stack.Pop - This removes the data value on top of the stackPeek - This returns the top data value of the stackA program that implements a stack using array is given as follows.Example#include using namespace std; int stack[100], n=100, top=-1; void push(int val) {    if(top>=n-1)   ... Read More

Execute a script when a file is ready to start playing in HTML?

Sreemaha
Updated on 24-Jun-2020 11:49:44
You can use the oncanplay attribute for the following attributes − , , and .Example                                        Your browser does not support the video element.                      alert("I am ready to begin.");          

How to specify if and how the author thinks the audio/video should be loaded when the page loads in HTML?

Prabhas
Updated on 24-Jun-2020 11:48:24
You can try to run the following code to learn how to implement a preload attribute to allow the author to give a hint to the browser for the best user experience. Works for both and tags −Example                                        Your browser does not support the video element.          

How to fill columns with CSS

George John
Updated on 24-Jun-2020 11:47:19
To fill columns, use the column-fill property. You can try to run the following code to implement the column-fill property, with balance form:ExampleLive Demo                    .demo {             column-count: 4;             column-fill: balance;          }                              This is demo text. This is demo text. This is demo text.          This is demo text. This is demo text. This is ... Read More

How do we specify that the list order should be descending (9,8,7, 6, 5...) in HTML?

Rishi Rathor
Updated on 24-Jun-2020 11:47:17
Use the reversed attribute in HTML to specify that the list order should be descending.ExampleYou can try to run the following code to implement reversed attribute −        Cricketers List                Amit          Amal          Rahul          Virat          

C++ Program to Implement Stack using linked list

George John
Updated on 24-Jun-2020 11:47:16
A stack is an abstract data structure that contains a collection of elements. Stack implements the LIFO mechanism i.e. the element that is pushed at the end is popped out first. Some of the principle operations in the stack are −Push - This adds a data value to the top of the stack.Pop - This removes the data value on top of the stack.Peek - This returns the top data value of the stack.A program that implements a stack using linked list is given as follows.Example#include using namespace std; struct Node {    int data;    struct Node *next; ... Read More

How do we set what media/device the linked document is optimized for in HTML?

seetha
Updated on 24-Jun-2020 11:44:56
Use the media attribute to specify what media/ device the linked document is optimized for in HTML. The attribute can be used with the following elements − , , , etc.Example           HTML media attribute k                     This is demo text.    
Advertisements