maazbinasad
Maaz Bin Asad

Maaz is a freelance content writer and an engineering undergraduate who is experienced working in the software development industry. He likes solving algorithmic problems and finding new approaches to optimize given problems.

maazbinasad
Maaz Bin Asad 16 October, 2022

Nginx 403 Forbidden Error

It is obvious that when you work with any system, server, or web resource for maintenance or config…

maazbinasad
Maaz Bin Asad 26 July, 2022

Find the Difference (Beautiful Arrangement) Problem Solution

Problem Given two strings, ‘s’ and  ‘t’ have all the characters the…

maazbinasad
Maaz Bin Asad 27 April, 2022

Find the sorted triplet in an array

Problem Given an integer array arr, find a sorted triplet such that arr[i] < arr[j] < arr[…

maazbinasad
Maaz Bin Asad 27 April, 2022

Activity Selection Problem

Problem Given pairs of integers denoting starting and ending time of each task. Find the maximum…

maazbinasad
Maaz Bin Asad 27 April, 2022

Job Sequencing Problem

Problem Given a set of jobs, each with its own deadline and corresponding profit. You get profit…

maazbinasad
Maaz Bin Asad 27 April, 2022

Efficiently calculate the frequency of all elements present in a limi…

Problem Given an array of the sizes n where elements range from 0 to n-1. Calculate the fre…

maazbinasad
Maaz Bin Asad 27 April, 2022

Find subarrays with a given sum in an array

Problem Given an unsorted array of nonnegative integers, find a continuous subarray which adds t…

maazbinasad
Maaz Bin Asad 27 April, 2022

Find the index that divides an array into two non-empty subarrays wit…

Problem Given an integer array, find an index that divides it into two non-empty subarrays havin…

maazbinasad
Maaz Bin Asad 27 April, 2022

Count distinct absolute values in a sorted array

Problem Given a sorted array of integers, return the number of distinct absolute values among th…

maazbinasad
Maaz Bin Asad 27 April, 2022

Find minimum product among all combinations of triplets in an array

Problem Find the minimum product of any three triplets in an array. Sample Input [1, 2, …

maazbinasad
Maaz Bin Asad 27 April, 2022

Print Matrix in Spiral Form

Problem Given an integer matrix, print it in spiral form Sample Input [1 2 3 4] [4 5 6 …

maazbinasad
Maaz Bin Asad 27 April, 2022

Shift all matrix elements by 1 in spiral order

Problem Given an M x N matrix, shift all its elements by 1 in spiral order Sample Input …