# Tag: interview

## 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 »

## 7 Simple but Tricky JavaScript Interview Questions

If you’re qualifying as Senior Developer that involves JavaScript, there’s a good chance to be asked tricky questions during the coding interview. I know it’s unfair. Some unknown people put… 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 »

## Introduction to Arrays in Javascript

Objects allow you to store keyed collections of values. That’s fine. But quite often we find that we need an ordered collection, where we have a 1st, a 2nd, a 3rd… 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 »