Articles on Trending Technologies

Technical articles with clear explanations and examples

Golang Program To Find The Transpose Of A Matrix

Akhil Sharma
Akhil Sharma
Updated on 06-Jan-2023 1K+ Views

In this article, we will write a go language program to find the transpose of a matrix. A matrix is a collection of numbers arranged in rows and columns, a two-dimensional array. Transpose of a matrix is defined as a matrix obtained by interchanging the rows and columns of that matrix. Method 1: Find the Transpose of a Matrix using For Loop In this example, we will write a go language program to find the transpose of the matrix using for loops in the main function. Algorithm Step 1 − Import the fmt package. Step 2 − Call the main() ...

Read More

Golang Program To Display Upper Triangular Matrix

Akhil Sharma
Akhil Sharma
Updated on 06-Jan-2023 359 Views

In this article, we will write a go language program to print the upper triangular matrix of any given matrix. Introduction − A square matrix is called an upper triangular matrix if it has zero values below the principal diagonal. A matrix is displayed in its upper triangular form only if it is square. i.e. it must have the same number of rows and columns. The order of a typical upper triangular matrix is N X N. Method 1: Display Upper Triangular Matrix using For Loops In this method, we will write a go language program to display upper ...

Read More

Difference between Fast Ethernet and Gigabit Ethernet

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 06-Jan-2023 7K+ Views

Ethernet is a set of protocols that are used primarily in LANs, although they can also be used in larger networks like MANs and even WANs. Ethernet was first standardized in the 1980s as the IEEE 802.3 standard. Since then, it has seen several upgrades and its data carrying capacity kept increasing with each upgrade. Standard Ethernet can support data speeds up to 10 Mbps. Fast Ethernet can carry data at a maximum speed of 100 Mbps. With Gigabit Ethernet, the data speeds reached a maximum speed of 1 Gbps. 10-Gigabit-Ethernet can carry data at incredibly high speeds of ...

Read More

How to Get Hashtable Elements as Sorted Array?

Shilpa Nadkarni
Shilpa Nadkarni
Updated on 06-Jan-2023 2K+ Views

A Hashtable is a non-generic collection of key-value pairs that are arranged as per the hash code of the key. A Hashtable is used to create a collection that uses a hash table for storage. The hashtable optimizes the lookup by calculating the hash code of each key and stores it internally into a basket. When we access the particular value from the hashtable, this hashcode is matched with the specified key. This hashtable collection is defined in the System.Collections namespace of C#. The class that represents the hashtable collection is the “Hashtable” class. This class provides constructors, methods, and ...

Read More

How to Convert Hashtable into an Array?

Shilpa Nadkarni
Shilpa Nadkarni
Updated on 06-Jan-2023 2K+ Views

The hashtable collection in C# is a non-generic collection of items represented as key-value pairs. Each key is a unique, non-null element. The value on the other hand can be duplicated and/or null. The Hashtable class in C# represents the hashtable collection. This class provides the relevant methods to create objects, alter items in the collection, etc. The hashtable collection can be expressed as an array or ArrayList in C#. In this article, let’s discuss how we can convert a hashtable collection into an array. How to Convert Hashtable into an Array? To convert the hashtable into an array, the ...

Read More

How to call a JavaScript function on a click event?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 06-Jan-2023 25K+ Views

To call a function on click event in JavaScript, you can use either the addEventListener method or the onclick event attribute. The addEventListener method is a general way to attach an event handler to a DOM element, and it allows you to specify the event and the callback function to be called when the event occurs. The onclick attribute is a specific event attribute that allows you to specify a JavaScript function to be called when the element is clicked. Both methods allow you to specify a function to be called when the element is clicked, but the addEventListener method ...

Read More

How to call jQuery function with JavaScript function?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 06-Jan-2023 17K+ Views

JavaScript is the core of any website, it adds functionalities to a website, make the overall website responsive. But in JavaScript, it is hard to select an element and add different functions like toggling an element, fade-in an element, and more. jQuery provides many methods for making it easy to add functionality to a website like fade-in, fade-out, hide, show, toggle, etc. Concatenating jQuery and JavaScript makes it easy to use the jQuery function in JavaScript function whenever needed, instead of calling them separately. Syntax To call a jQuery function with a JavaScript function, you can use the following syntax ...

Read More

How to calculate the nth root of a number in JavaScript?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 06-Jan-2023 1K+ Views

We have given a number and the task is to calculate the nth root of that number using JavaScript. We have multiple ways to achieve this, some of which are the following. Using Math.pow() Method Using Logarithm To get the nth root of a number firstly let’s understand whose root we can calculate and which number’s root we cannot calculate. If the number is positive and the root is also even then we will get two solutions. E.g − 2nd root of 16 is +4 and -4, similarly 4th root of 16 is +2 and -2 If ...

Read More

How to attach one or more drop-shadows to the box with JavaScript?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 06-Jan-2023 2K+ Views

To attach one or more drop shadows to a box with JavaScript, you can use the box-shadow style property. You can specify the shadow's offset, blur radius, spread radius, and color by passing values for these properties in the box-shadow property. Syntax Following is the syntax to add one or more drop shadows to the box with JavaScript − box.style.boxShadow = "offset-x offset-y blur-radius spread-radius color"; Here the box.style.boxShadow property in JavaScript allows you to add one or more drop shadows to a box element. It takes the following parameters offset-x − This is the horizontal offset of ...

Read More

How to access cookies using document object in JavaScript?

Saurabh Jaiswal
Saurabh Jaiswal
Updated on 06-Jan-2023 8K+ Views

With JavaScript, you can easily access/ read cookies with the “document.cookie” property. Reading a cookie is just as simple as writing one because of the value of the document.cookie object is the cookie. The document.cookie string will keep a list of name=value pairs separated by semicolons, where the name is the name of a cookie and value is its string value. In this article, we will learn how to access cookies using document object in JavaScript. Syntax document.cookie Return value − All the cookies are saved in the browser in a single string. The document.cookie string will keep ...

Read More
Showing 28621–28630 of 61,248 articles
Advertisements