Given a stream of integers, this problem seeks to find the median of the stream at any given point. For example, given the input of [2, 1, 5, 7, 2 , 0, 5], the corresponding output would be [2, 1.5, 2, 3.5, 2, 2, 2].

89

Nov 26
Given a stream of integers, this technical problem describes how to print out the average of all the integers seen so far at each point in the stream.

56

Nov 25
Given an input string, this NodeJS code snippet reverses the order of the words.

59

Nov 25
This technical problem deals with finding the median of a stream of integers. Given an example input of [1, 2, 3, 4, 5], the corresponding output would be the median at each point after a certain number of integers are added to the stream. Thus, after 1 integer is added to the stream, the median would be 1.5, and after 5 integers are added to the stream, the median would be 3.5.

65

Nov 24
To calculate the sum of an array of integers, simply add all the integers in the array together. In the example given, the sum would be 1 + 2 + 3 + 4 + 5 , or 15.

59

Nov 23
This technical problem deals with finding the median of a stream of integers. The input is a list of integers, and the output is the median of the stream at any given point.

57

Nov 21
This problem deals with printing the median of a stream of integers after each new element is introduced. The input is a stream of integers, and the output is the median of the stream after each new element is introduced.

66

Nov 19