C++ Program to Implement Singly Linked List

Nishu Kumari
Updated on 30-Jan-2025 14:41:59

92K+ Views

A singly linked list is a type of data structure where each item (called a node) has two parts: the data and a link to the next node in the list. You start from the first node (called the head) and keep going until the link is empty (NULL). For example, let's understand with this list of numbers: 9 -> 2 -> 7 -> 1 -> 3 -> NULL In this case, the node containing 9 is the head, and the node containing 3 is the last node (its next pointer is NULL). In this article, we will show ... Read More

Reverse a Vector Using STL in C++

Nishu Kumari
Updated on 30-Jan-2025 14:41:48

900 Views

Reversing a vector's elements is a common task in many programs, whether for sorting, displaying, or other reasons. C++ provides several ways to reverse a vector. Following is an example of creating a vector using C++. For the vector: V = {1, 2, 3, 4, 5} Reversed Output: {5, 4, 3, 2, 1} For the vector: V = {22, 23, 5, 6, 34} Reversed Output: {34, 6, 5, 23, 22} Approaches to Reverse a Vector We'll cover the following methods for reversing the element in the Vector. Using std::reverse Using a Simple Loop Using std::reverse_copy Using a ... Read More

Difference Between Whole Wheat, Whole Grain, and Multigrain Bread

Mudasir Mohd Najar
Updated on 30-Jan-2025 13:01:50

147 Views

Read this informative article to learn the different characteristics of Whole Wheat bread as compared to Whole Grains and Multigrain Products. The different bread types provide various nutritional features alongside distinct characteristics which make them sound healthful. The knowledge about these distinctions enables you to choose bread according to your eating requirements. What is Whole Wheat Bread? Whole wheat bread producers begin by processing wheat kernels to retain all their sections starting from the bran through the germ and ending with the endosperm. The bread-making process maintains all wheat components which keeps the original nutrients and fiber content intact providing ... Read More

Bird's Eye View on Phishing Emails: Potential Reduction Strategies

Harleen Kaur
Updated on 30-Jan-2025 12:28:31

1K+ Views

Phishing emails, which deceive people and organizations into disclosing private information, remain a serious cybersecurity risk. By looking at phishing efforts from a wider angle, or from a bird's-eye view, we can see trends and improve security to reduce their impact.What is a phishing email?Phishing email is either a false or real-looking email. Innocent people are typically the target of its design. Hackers use these emails in commercial contact with the goal of deceiving staff members. They can use this to access their personal data, including passwords and usernames. The web address linked to an email can be used to ... Read More

Tic Tac Toe Game

Souvik Chakraborty
Updated on 30-Jan-2025 11:09:13

1K+ Views

Tic Tac Toe is well-known two square board game in which two players have to put their mark on certain spaces in turns. The player that gets three of their marks in a row either in a horizontal, vertical, or diagonal manner wins that game. If all turns are used and no player gets the line, then the draw is the end of the game. In this article, we will see how to build a Tic Tac Toe game in plain HTML, CSS, and JavaScript. The code allows a two-player mode game and additional features including the Reset button, an ... Read More

Add User to Docker Group

Harleen Kaur
Updated on 29-Jan-2025 12:14:13

1K+ Views

As an efficient containerization tool,  Docker is used in applications across numerous sectors. Developers find it a very useful tool, and they don't need to rely on the target system to deploy their program in production or any other environment.It is a standard procedure to add users to a docker group. You can communicate with the docker daemon without sudo privileges by adding the user to the docker group. Superuser capabilities are usually needed to run Docker commands without adding a user to the Docker group. You can execute the commands without having docker access by adding a user to the ... Read More

Use of Binary Literals in Java

Sakshi Ghosh
Updated on 28-Jan-2025 18:23:53

593 Views

In this article, we will learn to illustrate the use of binary literals in Java. This feature is particularly useful when working with low-level data manipulation, such as in embedded systems or when dealing with bitwise operations. What is Binary Literal? A binary literal is a number that is denoted using binary digits that are 0s and 1s. The values written in data types – byte, int, long, and short can be easily expressed in a binary number system. The prefix 0b or 0B is added to the integer to declare a binary literal. For example − ... Read More

Java ResultSetMetaData getColumnDisplaySize Method with Example

Alshifa Hasnain
Updated on 28-Jan-2025 18:22:52

661 Views

In this article, we will learn the ResultSetMetaData getColumnDisplaySize() method with an example in Java. This is useful when you need to understand the display requirements of a column in a result set. Method Signature The getColumnDisplaySize(int column) method of the ResultSetMetaData class in Java retrieves the maximum width of the specified column, measured in characters. int getColumnDisplaySize(int column) Parameters: The 1-based index of the column for which you want the display size. Returns: The maximum number of characters that can be displayed for the specified column. ... Read More

Purge Disk I/O Caches on Linux

Abhishek Nair
Updated on 28-Jan-2025 17:55:19

350 Views

Most modern operating systems rely on disk I/O caching to improve system performance by storing frequently accessed data in memory. However, there are times when you might want to clear these caches, such as when benchmarking disk performance, troubleshooting, or ensuring that data is read from the disk rather than memory. This tutorial will guide you through the process of purging disk I/O caches on a Linux system but first let's dive into brief detail on what disk I/O caches are. Understanding Disk I/O Caches Linux uses a portion of system RAM to cache disk reads and writes, which speeds ... Read More

Install WhatsApp on Linux

Abhishek Nair
Updated on 28-Jan-2025 17:48:46

3K+ Views

WhatsApp is one of the most popular messaging applications worldwide, known for its simplicity and robust features. It allows you to share pictures, videos, make audio and video calls, one-to-one or in groups, with your friends and family. Moreover, there are plenty of groups and channels in WhatsApp for everyone which you can explore and join as per your interests. While it is primarily designed for mobile devices running Android and iOS, many users wish to access it on their desktop systems, including those running Linux. For Windows and Mac systems, WhatsApp provides official binaries for installation on your desktop ... Read More

Advertisements