Riya Kumari

Riya Kumari

72 Articles Published

Articles by Riya Kumari

72 articles

How to create a Share Button with different Social Handles using HTML and CSS?

Riya Kumari
Riya Kumari
Updated on 19-Sep-2024 10K+ Views

To create share button with different social handles using HTML and CSS, we will be using basic CSS properties and HTML tags. In this article, we will be understanding stepwise process to create share button with different social handles. In this article, we are having six HTML buttons and our task is to create share button with different social handles using HTML and CSS. We will be creating share buttons of Facebook, Twitter, Reddit, Pinterest, Linkedin and Whatsapp Steps to Create Share Button With Different Social Handles To create share button with different social handles using HTML and CSS, we ...

Read More

How to align checkbox and its label on cross-browsers using CSS?

Riya Kumari
Riya Kumari
Updated on 16-Sep-2024 12K+ Views

To align checkbox and its label on cross-browsers using CSS, we can use various CSS properties. Different browsers may have different styles and rendering methods while displaying checkboxes. In this article, we will be discussing three different approaches to align checkbox and its label on cross-browsers using CSS for consistent display and proper alignment. We are having two checkboxes and two corresponding labels in this article, our task is to align checkbox and its label on cross-browsers using CSS. Approaches to Align Checkbox and its Label on Cross Browsers Here is a list of approaches to align checkbox and its ...

Read More

Explain Nesting and Grouping in CSS

Riya Kumari
Riya Kumari
Updated on 05-Sep-2024 2K+ Views

Nesting and Grouping in CSS helps developers to write short and precise codes that are easy to run. Lengthy codes are always disadvantageous for the developers as it becomes difficult to debug the codes and increases the loading time for the web pages, decreasing the readability of the websites. In this article, we will be understanding about nesting and grouping, their advantages , their differences and how they help in reducing the code size, increasing the readability and making web site maintainable. Nesting in CSS Grouping in CSS Nesting ...

Read More

How to apply multiple transform property to an element using CSS?

Riya Kumari
Riya Kumari
Updated on 04-Sep-2024 5K+ Views

To apply multiple transform property to an element using CSS, we will be using two different methods which uses transformation property. In first approach we will be using two function of transform property whereas in second method we will be using nested class to apply different transformations. In this article, we are having a container with background image and our task is to apply multiple transform property to an element using CSS. Methods to Apply Multiple Transform to an Element Applying Multiple Transform Values Applying Multiple Transformation using Nesting of ...

Read More

How to align flexbox columns left and right using CSS?

Riya Kumari
Riya Kumari
Updated on 23-Jul-2024 21K+ Views

To align flexbox columns left and right using CSS, we can use various flexbox properties. In this article, we will learn and understand three different approaches to exaplain how to align flexbox columns left and right using CSS. We have created two flexible columns using div and flexbox, our task is to align flexible columns to left and right using CSS. Approaches to Align flexbox Columns Left and Right Here is a list of approaches to align flexbox columns left and right using CSS which we will be discussing in this article with stepwise explaination and complete example codes. ...

Read More

C++ code to count local extrema of given array

Riya Kumari
Riya Kumari
Updated on 05-Jan-2024 931 Views

Extrema are such numbers which are either minima or maxima. In other words, it is a number or element which is either greater than or less than both of its adjacent values. Suppose we have an array A with n elements. An element of this array A[i] is called a local minimum if and only if it is strictly less than both of its neighbours. Also if it is strictly greater than its neighbours it will be local maximum. For A[0] and A[n-1] as there are only one neighbour they are not maxima or minima. We have to find the ...

Read More

Number of palindromic subsequences of length k where k <= 3

Riya Kumari
Riya Kumari
Updated on 05-Jan-2024 429 Views

Palindromes are series of letters, numbers or characters which have same starting and ending point. Also, they are same when read from left to right and right to left. A subsequence of a string is a new string which is made by removing some of the characters from the original string without changing the relative order of the characters which are remaining. Suppose you are given a string of length N. You want to find palindromic subsequences of length K from the string. Note that value of K can be less than or equal to 3. In this article, we ...

Read More

Number of palindromic paths in a matrix

Riya Kumari
Riya Kumari
Updated on 05-Jan-2024 485 Views

Palindromic pathways are very useful in solving various problems involving patterns and sequences. It can be used in finding correct path in a maze without reversing, palindromes in a sequence of letters, etc., It can also be used to identify symmetric patterns and structures. In this article, we will discuss about palindromic paths and ways to find such paths in a matrix using C++. Palindromes are series of letters, numbers or characters which have same starting and ending point. Also, they are same when read from left to right and right to left. A path in a matrix is a ...

Read More

Number of palindromic permutations

Riya Kumari
Riya Kumari
Updated on 05-Jan-2024 567 Views

Permutations are possible in strings as well as numbers. A string can have permutations equal to the factorial of its number of characters. These permutations can be palindromic under certain circumstances. In this article, we will discuss about how palindromic permutations occur in a string. We will also find the number of palindromic permutations possible in a string using C++. Permutation is a mathematical process of rearranging the letters or characters from a specified string or words. In other words, it is rearrangement of objects or elements in an order. A palindrome is a set of character which are same ...

Read More

Number of ordered pairs such that Ai & Aj = 0

Riya Kumari
Riya Kumari
Updated on 05-Jan-2024 478 Views

Suppose you are given an array and you have to find the total count of ordered pairs formed such that Ai & Aj = 0. You are given an array A[A1, A2, A3, …An]. You have to find ordered pairs of Ai and Aj such that their bitwise AND operation will give the result equal to 0. In other words, you have to count the pairs of elements (i, j) whose bitwise AND operation is zero. For example, we have an array [3, 4, 2]. The binary representation of each element are as follows − A1 = 3 = ...

Read More
Showing 1–10 of 72 articles
« Prev 1 2 3 4 5 8 Next »
Advertisements