Skip to content

Abhiram Reddy

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

Sum of Numbers in a String Code C++

Sum of Numbers in a String

Today, I found a problem where we need to find the sum of numbers in a string, the string will be a mix of alphabets, numbers, and special characters, and usually, this can be solved by iterating through each character and adding all the numbers. Example Solution Approach Given a… Read More »Sum of Numbers in a String

Linear Search Algorithm C++

Linear Search Algorithm

Linear Search, the most basic and easiest searching algorithm that we even use in our daily life. Yes, linear search is nothing but searching one after the other till we find what we want in a sequence one by one. Definition Linear Search is also known as Sequential Search, is… Read More »Linear Search Algorithm

Bubble Sort Algorithm C++

Bubble Sort Algorithm

Bubble sort is one of the simple sorting techniques and it is also easier to code and understand. Bubble sort follows the simple principle of comparing two adjacent elements and swapping them according to our desired order. How Bubble Sort works? Consider the below example where we try to sort… Read More »Bubble Sort Algorithm

Template Functions in C++

Template Functions in C++

Template Functions in C++ are easy to implement and powerful at the same time, also known as Generic Programming, where we don’t specify the data type and can use any type when needed. The template function follows the concept of data type as a parameter for initializing variables at compile… Read More »Template Functions in C++