# Abhiram Reddy

Abhiram is a Frontend Engineer. He enjoys writing clean code and sharing his learnings here on matrixread.

## Majority Element in an Array – LeetCode

• DSA

Given an array of size n, find the majority element. The element that appears more than ⌊ n/2 ⌋ times in the array. Note: Input will be a non-empty and unsorted array. Example Solution Approach 1. Sorting On sorting the given array, the element occurring more than [n/2] times will… Read More »Majority Element in an Array – LeetCode

## Sorting Algorithms in C++

• DSA

Sorting algorithms are cool. But, every time I learn or refer to any algorithm in my head or watch a YouTube video, I can understand and recall how it works but, my brain starts yelling – write the code! write the code! If you are trying to learn or understand… Read More »Sorting Algorithms in C++

## Transpose a Matrix

• DSA

Given a matrix of N dimensions, and we need to transpose it. One of the standard problem on matrices. Don’t confuse Transpose with Rotation, the rotation is normally performed on the X-Y axis while in a transpose, the matrix is flipped on its diagonal. Example: Solution Approach This is simple… Read More »Transpose a Matrix

## Array of Structures – API Problem

• DSA

In this post we’ll be solving a simple problem using an Array of Structures. Problem Statement: Read an input of [N] API calls and find their Average, Each call has three timestamps [T1, T2, T3] and we need to give separate average for each. Example Output Explanation, in the above… Read More »Array of Structures – API Problem

## #2: Free Frontend Cheat-Sheets

Hey, First of all thanks for joining Matrixread Community, from now on, I’ll be sending two issues every month. Don’t worry this won’t be long as the main purpose of this is to share only useful resources. In a nutshell, I’ll be sharing Free Courses and Resources Tips/Tools and Tricks… Read More »#2: Free Frontend Cheat-Sheets

## How to Style Images with CSS

Images are one of the important assets when it comes to the web. We use images to express, convey, and show things that may not be possible with text. Style Images with CSS means styling like any other elements with CSS. An Image is inserted either by using the img… Read More »How to Style Images with CSS