Articles on Trending Technologies

Technical articles with clear explanations and examples

The Destructive Power of Hate

Bhaswati Mukherjee
Bhaswati Mukherjee
Updated on 06-Mar-2023 2K+ Views

Hatred is a very potent emotion. It is a mental poison that can contaminate your mind, rot your soul, and contaminate all of your relationships. Anybody who has ever been engulfed in hatred knows how destructive and mind-consuming it can be. Even a single phrase can be powerful, especially if it is spoken by a friend, a family member, or a young child. It causes much emotional turmoil for people who are experiencing it. While many things might inspire hatred, including food, jobs, movies, and animals, hatred of other people is the most harmful. Broadly speaking, there are two ...

Read More

How to sorting an array without using loops in Node.js?

Shubham Vora
Shubham Vora
Updated on 06-Mar-2023 1K+ Views

In Node.js, a built-in sort() method is available to sort an array without a headache. However, as a beginner to learn how the sort() method works internally, users should learn various sorting algorithms. In this tutorial, we will learn a different algorithm to sort an array without using loops in NodeJS. Use the setInterval() method The setInterval() method allows us to invoke any particular function after each interval. Also, we can store the id of the setInterval() method in any variable and use it later to clear the interval. So, we can call a callback function in the ...

Read More

How to create a dynamic search box in ReactJS?

Shubham Vora
Shubham Vora
Updated on 06-Mar-2023 4K+ Views

Search is one of the most important functionalities of the website. It allows users to filter products and search for specific things on the website, reducing the time users find particular things on the website. For example, you can see a search bar at the top of this page. Whenever we enter any search input, it shows us a search result by filtering the courses and tutorials based on the search result. This tutorial will teach us to implement dynamic search from scratch in ReactJS. Use the AutoComplete Component of Material UI The Material UI library contains various ...

Read More

Check if a Matrix is Markov Matrix or not in Java

Mr. Satyabrata
Mr. Satyabrata
Updated on 06-Mar-2023 2K+ Views

Matrices are nothing but it’s more than a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. A square matrix is called a Markov matrix if all entries are nonnegative and the sum of each column vector is equal to 1. The Markov matrix represents steps in a Markov chain. Each input of the Markov matrix represents the probability of an outcome. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some ...

Read More

How to create Accordion in ReactJS?

Prerna Tiwari
Prerna Tiwari
Updated on 06-Mar-2023 9K+ Views

A UI element called an accordion enables user to expand and compress content portions. A great method to add interactivity to your online application and make it simpler for visitors to explore and find the information they need is to create an accordion in ReactJS. This article will walk you through the steps required to create an accordion in ReactJS and provide sample code to get you started. Step 1: Setting up the React Project To get started, you must have a React project set up. The create-react-app command can create a new project if you don't currently ...

Read More

How to create a simple counter Using ReactJS?

Prerna Tiwari
Prerna Tiwari
Updated on 06-Mar-2023 11K+ Views

Your online application can benefit greatly from adding interactivity by utilizing ReactJS to create a straightforward counter. In this tutorial, we will outline the procedures needed to build a straightforward counter using ReactJS and offer some sample code to get you started. Step 1: Setting up the React Project To get started, you will need to have a React project set up. If you don't already have one, you can use the create-react-app command to set up a new react project. npx create-react-app counter-app cd counter-app npm start This will set up a new project in a ...

Read More

How to Create a Responsive Like Button in ReactJS?

Prerna Tiwari
Prerna Tiwari
Updated on 06-Mar-2023 6K+ Views

Creating a responsive like button in ReactJS is a fantastic method to increase the interactivity of your web application. The steps required to create a responsive like button in ReactJS will be discussed in this blog post, along with some sample code, to get you started. Let's first examine a React component's basic structure. A React component is a JavaScript function that generates a React element. A React element is a straightforward JavaScript object that describes a DOM node. A button element that a user can click to express their approval of a piece of material would be a ...

Read More

Check if a Matrix is Identity Matrix or not in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 06-Mar-2023 2K+ Views

Matrices are nothing but it’s more than a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. Identity matrix is a square matrix which has all 1s as its principal diagonal elements and rest are 0s. As per the problem statement we have to0 check if the given matrix is Identity matrix or not. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose we have a matrix ...

Read More

Find Two Array Elements Having Maximum Sum in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 06-Mar-2023 3K+ Views

Two elements giving the maximum sum in an array means, we have to find two largest array elements which will eventually give the maximum sum possible. In this article we will see how we can find the maximum sum of two elements in Java. To show you some instances Instance-1 Suppose we have the below array [10, 2, 3, -5, 99, 12, 0, -1] In this array the largest element is 99 and second largest is 12. Max sum = 99 + 12 Hence the maximum sum of two elements in this array is 111. Instance-2 Suppose we have the ...

Read More

Find Two Array Elements Having Maximum Product in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 06-Mar-2023 1K+ Views

Two elements giving the maximum product in an array means, we have to find two largest array elements which will eventually give the maximum product possible. In this article we will see how we can find the maximum product of two elements in Java. To show you some instances Instance-1 Suppose we have the below array [10, 2, 3, -5, 99, 12, 0, -1] In this array the largest element is 99 and second largest is 12. Max product = 99 * 12 Hence the maximum product of two elements in this array is 1188. Instance-2 Suppose we have the ...

Read More
Showing 40061–40070 of 61,297 articles
Advertisements