Web Development Articles - Page 89 of 801

How to create Image Folding Effect using HTML and CSS?

Aayush Mohan Sinha
Updated on 13-Apr-2023 15:35:43

1K+ Views

In today's digital age, creating visually appealing and interactive user interfaces has become a crucial aspect of web design. One of the popular effects used in modern websites is the Image Folding Effect. This effect provides a unique and engaging way to showcase images on your website. The art of Image Folding Effect can be created through the application of HTML and CSS, which are the fundamental components of contemporary digital structures. In this piece, we shall direct you through the progression of concocting an Image Folding Outcome, bit by bit, employing HTML and CSS. By the end of this ... Read More

How to Change Image Source URL Using AngularJS?

Aayush Mohan Sinha
Updated on 13-Apr-2023 15:30:40

1K+ Views

AngularJS is a prevalent and potent framework for creating the front-end of web applications, enabling developers to produce dynamic and interactive web pages with great ease. An essential aspect of AngularJS is the capability to modify HTML elements and their characteristics dynamically, offering greater flexibility and customization to developers. One such conventional circumstance is dynamically altering the source Uniform Resource Locator (URL) of an image, which can be highly advantageous in diverse web-based programs. In this scholarly composition, we shall delve into the methodology of modifying the image source Uniform Resource Locator (URL) using AngularJS, and ascertain how to utilize ... Read More

JavaScript Program To Add Two Numbers Represented By Linked Lists- Set 1

Prabhdeep Singh
Updated on 04-May-2023 11:02:09

319 Views

Adding two numbers is an easy task but could be tricky if the numbers are given in the form of the linked list. Each node of the linked list contains the digit of the number it represents in a continuous manner from the first node to the last node. We will be given two linked lists representing two different numbers and we have to add them and return the third number in the form of a linked list. Input 1 -> 2 -> 3 -> null 3 -> 2 -> 4 -> null Output 4 -> 4 -> 7 ... Read More

JavaScript Program to Check horizontal and vertical symmetry in binary matrix

Alshifa Hasnain
Updated on 20-Dec-2024 11:33:30

557 Views

In this article, we will learn to create a program to check both horizontal and vertical symmetry in a binary matrix in JavaScript. A binary matrix is a 2-D array that consists of one and zero only as the elements in each cell. Horizontal symmetry of a binary matrix means if the first row is the same as the last row, the second row is the same as the second last row, and so on. What are symmetry matrices?  Symmetry in matrices refers to how the values in the matrix mirror themselves along an axis. In the case of a ... Read More

JavaScript Program for Writing A Function To Get Nth Node In A Linked List

Prabhdeep Singh
Updated on 04-May-2023 10:58:19

254 Views

Linked list is a linear data structure and all the nodes are connected to each other by storing the address of the next node. To find the nth node in a linked list means to get the value present at the nth node of the given linked list and that can be done by two methods that are iterative and recursive method. Example Given linked list: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> null Node to find: 3 Output 3 Explanation: The value present at the third node is 3. Iterative Approach ... Read More

JavaScript Program to Check if Matrix is Upper Triangular

Ravi Ranjan
Updated on 06-Jun-2025 19:36:38

315 Views

To check if matrix is upper triangular matrix, we check if all the elements below the main diagonal is 0. We are going to discuss two different approaches and compare their complexities. In this article we are having a 2D square matrix, our task is to write a JavaScript program to check if matrix is upper triangular matrix. Users must be familiar with upper triangular matrix, nested for loop, conditional statement and javascript methods. Example Input: Matrix: [[1, 2, 3, 4], 0, 5, 6, 7], ... Read More

JavaScript Program to check if the matrix is lower Triangular

Prabhdeep Singh
Updated on 13-Apr-2023 15:30:14

177 Views

A matrix can be defined as a 2D array that stores elements in it and mathematically it stores the numbers in it. A Lower triangular matrix is a squared matrix that has the same number of rows and columns and all the elements that are present above the main diagonal passing from the first cell (present at the top-left) towards the last cell (present at the bottom-right) are zero. We will implement a proper code with explanation and discussion over time and space complexity. Example Input 1: mat = [ [ 1, 0, 0, 0], [ 2, ... Read More

JavaScript Program to Check if it is possible to make array increasing or decreasing by rotating the array

Prabhdeep Singh
Updated on 13-Apr-2023 15:27:24

233 Views

Rotation of the array means to assume the array as a circular array and rotate the elements of the array to either their left or right direction by one index at each rotation and the element at one end may take the value present at another end. An Increasing array means that each element will be greater than or equal to its previous element and decreasing array means each element will be less than or equal to the previous element. In this problem, we are given an array and we can rotate the array in either the left or the ... Read More

JavaScript Program to Check if all rows of a matrix are circular rotations of each other

Prabhdeep Singh
Updated on 13-Apr-2023 15:26:25

283 Views

Matrix is a kind of 2-D array in which there is an array of fixed arrays that defines the rows and for each index of this array there are fixed length arrays present and the length of these arrays defines the number of columns present in the matrix. We can store any kind of data type in these cells provided by the matrix. We will be provided with a matrix and each row contains some integers and we have to check if each row is the rotation of one another or not. Rotation of each other means by some number ... Read More

JavaScript Program to Check if all array elements can be converted to pronic numbers by rotating digits

Prabhdeep Singh
Updated on 13-Apr-2023 15:25:20

164 Views

Pronic numbers are also known as rectangular numbers, the pronic numbers are numbers that are multiples of two consecutive numbers. We will be given an array of integers and we can rotate the digits in any direction for a certain number of times to get all combinations. For any combination produced by rotating the digit if each array element can be converted into the pronic number then we will print true otherwise false. Pronic Numbers First, let us discuss pronic numbers: pronic numbers are the numbers that are the product of two consecutive numbers. Mathematically saying, if we have integer ... Read More

Advertisements