Articles on Trending Technologies

Technical articles with clear explanations and examples

Add 1 to the number represented as array (Recursive Approach)?

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 734 Views

Given an array which is a collection of non-negative numbers represented as an array of digits, add 1 to the number (increment the number represented by the digits). The digits are stored such that the most significant digit is the first element of the array. To add 1 to the number represented by digits − Start from the rightmost digit (last element of the array) If the last digit is less than 9, simply add 1 to it If the last digit is 9, make it 0 and carry 1 to the next position Continue this process ...

Read More

CSS pitch property

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 219 Views

The CSS pitch property specifies the average pitch (frequency) of the speaking voice in speech synthesis. The average pitch varies based on the voice family − for example, a standard male voice averages around 120Hz, while a female voice averages around 210Hz. Syntax selector { pitch: value; } Possible Values ValueDescription frequencySpecifies the average pitch in hertz (Hz) x-lowExtra low pitch relative to voice family lowLow pitch relative to voice family mediumMedium pitch relative to voice family (default) highHigh pitch relative to voice family x-highExtra high pitch relative to ...

Read More

A square matrix as sum of symmetric and skew-symmetric matrix ?

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 1K+ Views

A square matrix can be expressed as the sum of a symmetric matrix and a skew-symmetric matrix. This decomposition is unique and provides insight into the structure of any square matrix. Symmetric Matrix − A matrix whose transpose is equal to the matrix itself (A = AT). Skew-symmetric Matrix − A matrix whose transpose is equal to the negative of the matrix (A = -AT). Syntax A = (1/2)(A + A^T) + (1/2)(A - A^T) Where: (1/2)(A + A^T) is the symmetric part (1/2)(A - A^T) is the skew-symmetric part ...

Read More

CSS cue-after Property

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 148 Views

The CSS cue-after property specifies a sound to be played after speaking an element's content in speech synthesis. This property is part of CSS Speech Module and is used by screen readers and other assistive technologies to provide audio cues that help separate content elements. Syntax selector { cue-after: value; } Possible Values ValueDescription url()Specifies the URL of a sound file to be played noneNo sound will be played (default value) Example The following example demonstrates how to add audio cues after different elements − ...

Read More

Sum of square of first n odd numbers

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 3K+ Views

The sum of squares of first n odd numbers is a mathematical series where we calculate the squares of the first n odd numbers and add them together. The first n odd numbers are: 1, 3, 5, 7, 9, 11, ... and their squares form the series: 12, 32, 52, 72, 92, 112, ... which equals 1, 9, 25, 49, 81, 121, ... Syntax sum = n(2n+1)(2n-1)/3 = n(4n² - 1)/3 Where n is the count of odd numbers to consider. Method 1: Using Loop Iteration This approach calculates each odd number, squares it, and adds to the sum − #include int main() { int n = 4; int sum = 0; for (int i = 1; i

Read More

Fade Out Animation Effect with CSS

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 669 Views

The CSS fade out animation effect gradually transitions an element from fully visible (opacity: 1) to completely invisible (opacity: 0). This creates a smooth disappearing effect that's commonly used for image galleries, modal closures, and interactive elements. Syntax @keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } } .element { animation-name: fadeOut; animation-duration: time; animation-fill-mode: both; } Example: Basic Fade Out Effect The following example demonstrates a fade out ...

Read More

Sum of all subsets of a set formed by first n natural numbers

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 404 Views

A set is a collection of data elements. A subset of a set is a set formed by selecting some or all elements from the parent set. For example, B is a subset of A if all elements of B exist in A. Here we need to find the sum of all subsets of a set formed by first n natural numbers. This means we need to find all possible subsets and then add up all their elements. Understanding the Problem Let's take an example with N = 3: Set = {1, 2, 3} All ...

Read More

Fade In Up Big Animation Effect with CSS

Samual Sam
Samual Sam
Updated on 15-Mar-2026 349 Views

The CSS fadeInUpBig animation effect creates a dramatic entrance where an element slides up from far below the viewport while fading in. This animation is perfect for hero sections, large images, or content that needs to make a bold visual impact. Syntax @keyframes fadeInUpBig { 0% { opacity: 0; transform: translateY(2000px); } 100% { opacity: 1; ...

Read More

Sum of series with alternate signed squares of AP

sudhir sharma
sudhir sharma
Updated on 15-Mar-2026 530 Views

An arithmetic progression (AP) is a series of numbers in which the difference between two consecutive terms is the same. The difference is calculated by subtracting the first term from the second. Let's take a sample sequence to understand AP − 5, 7, 9, 11, 13, 15, . . . The common difference (d) of this arithmetic progression is 2. This means every succeeding element differs from the former one by 2. The first term (a) of this series is 5. The general formula for finding the nth term is an = a + (n-1) × d ...

Read More

Fade In Animation Effect with CSS

Yaswanth Varma
Yaswanth Varma
Updated on 15-Mar-2026 822 Views

CSS fade-in animation creates a smooth visual effect where elements gradually transition from transparent to opaque. This effect is commonly used to enhance user interaction by drawing attention to specific elements like buttons, images, or text when users hover over them. Syntax selector { opacity: initial-value; transition: opacity duration; } selector:hover { opacity: final-value; } Key Properties PropertyDescriptionValues opacityControls transparency level0 (transparent) to 1 (opaque) transitionDefines animation duration and timingTime in seconds (s) or milliseconds (ms) Example 1: ...

Read More
Showing 21541–21550 of 61,299 articles
Advertisements