JavaScript

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:
Programming Languages / JavaScript DifficultyMedium JavaScript
This problem asks you to write a function that takes an array of integers and returns the sum of the array's elements. For example, given the input [1, 2, 3, 4 , 5], the function should return 15.
About this solution: This is a great solution! The candidate has clearly thought through the problem and has provided a very efficient solution.
Nov 20
Programming Languages / JavaScript DifficultyMedium JavaScript
This technical problem deals with writing a function in JavaScript that returns the sum of all numeric values in an object. An example input and output are provided in the problem statement.
About this solution: This solution is a good solution that demonstrates a level of completeness and solves the problem. The approach is simple and easy to understand, which is good.
Nov 20
Programming Languages / JavaScript DifficultyMedium JavaScript
This technical problem deals with adding elements in an array. Given an array of integers, the function should return the sum of the elements in the array.
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The candidate's approach is also optimal.
Nov 20
Programming Languages / JavaScript DifficultyMedium JavaScript
This technical problem involves returning the sum of the elements in an array. An example input would be [1, 2, 3, 4] and the corresponding output would be 10.
About this solution: This is a great solution! The candidate has clearly thought through the problem and has provided a very efficient solution. Great job!
Nov 20
Programming Languages / JavaScript DifficultyMedium JavaScript
The function should take an array of integers as input and return the sum of the odd integers in the array.
About this solution: This is a great solution! The candidate has thought through the problem and provided a complete solution that solves the problem. The candidate has also taken care to explain their thinking process, which is always a good sign.
Nov 20
Programming Languages / JavaScript DifficultyMedium JavaScript
Given a string, reverse it word by word.
About this solution: This is a great solution! The candidate has thought through the problem and has provided a very readable and easy to understand solution. The solution uses a single loop to iterate through the string and a single array to store the words in reverse order. This is an optimal solution.
Nov 19
Programming Languages / JavaScript DifficultyMedium JavaScript
This problem asks the programmer to write a function that, when given an array of integers, calculates the sum of all the elements in the array. The input is an array of four integers, and the output is the integer 10.
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 19
Programming Languages / JavaScript DifficultyMedium JavaScript
To find the sum of the elements of an array of integers, simply loop through the array and add each element to a running total.
About this solution: This is a good solution that uses a for loop to iterate through the array and add each element to the sum variable. The for loop is the most efficient way to iterate through an array. The sum variable is initialized to 0 and then incremented by the value of each element in the array. The sum variable is then returned.
Nov 19