Articles on Trending Technologies

Technical articles with clear explanations and examples

Two Major Documents of Project Management - Project Charter and Project Scope

Pavan Sharma
Pavan Sharma
Updated on 23-Jan-2023 331 Views

The project charter and the project scope are two important papers that makeup project management. At the beginning of a project, both the project charter and the project scope statement are created. Throughout the project, they are utilized to determine whether or not the project is headed in the right path. The creation of a project charter and scope statement is crucial. According to studies, poor planning results in 39% of initiatives failing. What is a Project Charter? One of the most crucial and significant papers for each project is the project charter. It serves as the project's initial document ...

Read More

Golang program to get maximum and minimum from a slice

Akhil Sharma
Akhil Sharma
Updated on 23-Jan-2023 5K+ Views

In this article, we will see how to fetch maximum and minimum elements from a slice. A slice is a sequence of elements just like an array. An array is a fixed sequence of elements whereas a slice is a dynamic array, meaning its value is not fixed and can be changed. Slices are more efficient and faster than arrays moreover; they are passed by reference instead by value. Let us understand this basic concept using different set of examples and algorithms based upon them. Method 1: Using the Helper Function In this method, we will learn how to get ...

Read More

Golang to check if a slice is empty

Akhil Sharma
Akhil Sharma
Updated on 23-Jan-2023 6K+ Views

In this article, we will check if the slice is empty or not using a variety of examples. A slice is a sequence of elements just like an array. An array is a fixed sequence of elements whereas a slice is a dynamic array, meaning its value is not fixed and can be changed. Slices are more efficient and faster than arrays moreover they are passed by reference instead by value. Let’s learn through examples how it can be executed. Syntax func append(slice, element_1, element_2…, element_N) []T The append function is used to add values to an array slice. ...

Read More

Golang program to check if two slices are equal

Akhil Sharma
Akhil Sharma
Updated on 23-Jan-2023 2K+ Views

In this article, we will see what are the ways to check whether two slices are equal or not with the help of relevant examples. A slice is a sequence of elements just like an array. An array is a fixed sequence of elements whereas a slice is a dynamic array, meaning its value is not fixed and can be changed. Slices are more efficient and faster than arrays moreover; they are passed by reference instead by value. Let us learn the concept through examples. Method 1: Using a built-in Function In this method, we will use reflect.DeepEqual() function from ...

Read More

Golang program to count the elements of a slice

Akhil Sharma
Akhil Sharma
Updated on 23-Jan-2023 2K+ Views

In this article, we will learn how to count the elements of a slice using a different set of examples. A slice is a sequence of elements just like an array. An array is a fixed sequence of elements whereas a slice is a dynamic array, meaning its value is not fixed and can be changed. Slices are more efficient and faster than arrays moreover; they are passed by reference instead by value. Let us learn through examples how it can be executed. Syntax func append(slice, element_1, element_2…, element_N) []T The append function is used to add values to ...

Read More

Golang to remove null from a slice

Akhil Sharma
Akhil Sharma
Updated on 23-Jan-2023 2K+ Views

In this article, we will learn how to remove a null value from a slice using a variety of examples. A slice is a sequence of elements just like an array. An array is a fixed sequence of elements whereas a slice is a dynamic array, meaning its value is not fixed and can be changed. Slices are more efficient and faster than arrays moreover; they are passed by reference instead of value. Let us learn through examples how it can be executed. Method 1: Using For Loop In this method, we will see how to remove a null value ...

Read More

Golang program to print the left diagonal matrix

Akhil Sharma
Akhil Sharma
Updated on 23-Jan-2023 346 Views

In this article, we will see how to print the left diagonal matrix with the help of suitable examples. A matrix is a 2-d array. Here in the examples, we will use a nested for loop which will iterate through the rows and columns of the matrix to print the left diagonal matrix. The output will be printed on the screen using fmt.println() function which is a print statement in Golang. Algorithm Step 1 − Create a package main and declare fmt(format package) package in the program where main produces executable codes and fmt helps in formatting input and ...

Read More

Golang program to print right diagonal matrix

Akhil Sharma
Akhil Sharma
Updated on 23-Jan-2023 420 Views

In this article, we will see how to print the right diagonal matrix with the help of suitable examples. A matrix is a 2-d array. Here in the examples, we will use a nested for loop which will iterate through the rows and columns of the matrix to print the right diagonal matrix. The output will be printed on the screen using fmt.println() function which is a print statement in Golang. Algorithm Step 1 − Create a package main and declare fmt(format package) package in the program where main produces executable codes and fmt helps in formatting input and ...

Read More

What is a Project Charter and Why Do You Need One?

Gargi Tomar
Gargi Tomar
Updated on 23-Jan-2023 695 Views

The first step in creating an IT project is to create a project charter. This document provides the goals and procedures for the project, and it lets everyone know what they're working toward. Having a project charter ensures that everyone is working on the same page and that they have the necessary information. Having a clear plan at the beginning of the project helps everyone focus on the essential details and prevents potential conflicts from arising. It also helps prevent misunderstandings. Everyone has a clear understanding of their roles and responsibilities, which helps prevent conflict from developing. Although it may ...

Read More

Haskell Program to find the 1's complement of the given number

Akhil Sharma
Akhil Sharma
Updated on 23-Jan-2023 499 Views

This tutorial will help us to find the 1's complement of the given number. The 1's complement of a binary number is found by inverting each bit of the number. A 1 becomes a 0, and a 0 becomes a 1. This is also known as the bitwise NOT operation. The 1's complement of a number can be useful in certain types of error-detecting and error-correcting Example:s, as well as in certain types of digital logic circuits. The most common use of 1's complement is in signed number representation where it's used to represent negative numbers. For example, if the ...

Read More
Showing 41021–41030 of 61,297 articles
Advertisements