NodeJS

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
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
NodeJS / Authentication DifficultyMedium JavaScript
Given a list of user objects, this function will take in a username and return the corresponding user object if it exists. If the user does not exist, it will return null.
About this solution: The candidate's solution is correct and uses an efficient approach to solving the problem.
Nov 23
NodeJS / MongoDB DifficultyMedium JavaScript
Given an array of integers, this problem asks you to find the lowest positive integer that is not present in the array. You are to do this in linear time and constant space.
About this solution: The candidate's solution is correct and solves the problem. The approach is to sort the array and then iterate through it to find the first missing positive integer. This solution is optimal because it is linear time and constant space.
Nov 23
NodeJS / Modules DifficultyMedium JavaScript
This technical problem deals with finding the sum of integers in an array. An example input is given as [1, 2, 3, 4], and the expected output is 10.
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The candidate's approach is also optimal, making use of the reduce method to iterate through the array only once.
Nov 22
NodeJS / Authentication DifficultyMedium JavaScript
Write a function that takes in a user's email and password and returns true if the user exists in an array of user objects and the password is correct.
About this solution: The candidate's solution correctly implements the function as specified in the question. It iterates through the array of users and returns true if it finds a match for the email and password.
Nov 22
NodeJS / Console DifficultyMedium JavaScript
This problem asks for the sum of all integers in an array that are greater than or equal to 10. So, for the example input given, the output would be 75 (10+11 +12+13+14+15).
About this solution: This solution is correct and solves the problem. The approach is simple and easy to understand.
Nov 20
NodeJS / Authentication DifficultyMedium JavaScript
This technical problem deals with creating a password hash for a user object in NodeJS.
About this solution: The candidate's solution correctly generates a hash of the password property on the user object, and returns an object with the remaining properties. This solution correctly solves the problem.
Nov 20
NodeJS / MongoDB DifficultyMedium JavaScript
Given an array of integers, this function will return the sum of all integers that are greater than or equal to 10.
About this solution: This is a great solution! It is very clear and easy to follow, and it efficiently solves the problem.
Nov 19