NodeJS / Streaming

Categories: Code Problem / Data Structures and Algorithms / Recursion (32) Code Problem / Data Structures and Algorithms / Binary Search (30) Code Problem / Data Structures and Algorithms / Linked Lists (26) Code Problem / Data Structures and Algorithms / Backtracking (26) Code Problem / Data Structures and Algorithms / Stacks and Queues (25) Code Problem / Data Structures and Algorithms / Hashing (24) Databases / SQL / Backup and Recovery (19) Code Problem / Data Structures and Algorithms / Arrays and Strings (19) Databases / SQL / Database Normalization (18) Code Problem / Data Structures and Algorithms / Time Complexity (17) Databases / SQL / Locking (16) Databases / SQL / Replication (15) Databases / SQL / SQL Queries (13) Code Problem / Data Structures and Algorithms / Graphs (13) Databases / SQL / Database Security (13)  More...

Recent solutions:

Check these solutions from our community:
NodeJS / Streaming DifficultyMedium JavaScript
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].
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The candidate has correctly identified the problem and has provided a solution that solves the problem. The candidate's approach is sound and their use of a binary search is clever. The only improvement that could be made is to provide more comments explaining the code.
Nov 26
NodeJS / Streaming DifficultyMedium JavaScript
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.
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The solution is optimal in terms of time and space complexity.
Nov 25
NodeJS / Streaming DifficultyMedium JavaScript
Given an input string, this NodeJS code snippet reverses the order of the words.
About this solution: The candidate's solution is correct and uses built-in methods that are optimized for the task at hand.
Nov 25
NodeJS / Streaming DifficultyMedium JavaScript
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.
About this solution: This solution is correct and demonstrates a good understanding of how to solve the problem. The approach is straightforward and easy to follow.
Nov 23