# Category: Interview Questions

## Leetcode Problem 32: Trapping Rain Water in go

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. Example: Input: [0,1,0,2,1,0,1,3,2,1,2,1] Output: 6… Read more »

## Rearrange linked list into an alternating high – low values

Daily Coding Problem: Problem #256 [Medium] Given a linked list, rearrange the node values such that they appear in alternating low -> high -> low -> high … form. For example, given 1 -> 2… Read more »

## A maximal subarray

The input is an array of numbers, e.g. The task is: find the contiguous subarray of arr with the maximal sum of items. Write the function getMaxSubSum(arr) that will return that sum. For instance:… Read more »

## List of 45 (Advanced) JavaScript Questions

From basic to advanced: test how well you know JavaScript, refresh your knowledge a bit, or prepare for your coding interview!. The answers are in the collapsed sections below the… Read more »

## List of 5 (Advanced) JavaScript Questions part 1

From basic to advanced: test how well you know JavaScript, refresh your knowledge a bit, or prepare for your coding interview! part-1 1. What’s the output? Explanation: Within the function,… Read more »

## Write a function to flatten a nested dictionary separated by period

This problem was asked by Stripe. Write a function to flatten a nested dictionary. Namespace the keys with a period. For example, given the following dictionary: it should become: You… 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. E.g…. 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.

This problem was asked by Google. Given an array of integers, return a new array where each element in the new array is the number of smaller elements to the… Read more »

## pair of elements in an array having sum k

You have given array of integer numbers and you need to find the pair of elements having sum k. An array is a collection of items stored at contiguous memory… Read more »

## Frequency of each character in string

Given a string str containing. The problem is to print the characters along with their frequency and in the given format explained in the examples below. Input : str = “abacd”… Read more »