Category

Interview Questions

Too many people stumble through job interviews as if the questions asked are coming out of left field. But many job interview questions are to be expected.

An Introduction To Backtracking

An Introduction To Backtracking

Backtracking reduces the search space since we no longer have to follow down any paths we know are invalid. This is called...

Read More

A maximal subarray

A maximal subarray

find the contiguous subarray of arr with the maximal sum of items...

Read More

Write a function that prints the least integer that is not present in a given list and cannot be represented by the summation of the sub-elements of the list

Write a function that prints the least integer that is not present in a given list and cannot be represented by the summation of the sub-elements of the list

Write a function that prints the least integer that is not present in a given list and cannot be represented by the summation of the sub-elements of the list

Read More

Rearrange linked list into an alternating high - low values

Rearrange linked list into an alternating high - low values

Given a linked list, rearrange the node values such that they appear in alternating low -> high -> low -> high ... form.

Read More

Reverse a linked list using recursion and without recursion

Reverse a linked list using recursion and without recursion

Reverse a linked list using recursion and without recursion. A linked list is a linear data structure where each element is a separate object. Linked list elements are not stored at the contiguous location

Read More

Given an array of integers, return a new array where each element in the new array is the number of smaller elements to the right of that element in the original input array.

Given an array of integers, return a new array where each element in the new array is the number of smaller elements to the right of that element in the original input array.

Given an array of integers, return a new array where each element in the new array is the number of smaller elements to the right of that element in the original input array.

Read More

1of 2 Next Last