Puzzles / Mathematical

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:
Puzzles / Mathematical DifficultyHard Python
This puzzle asks you to write a function that takes in a list of integers and outputs the largest number in the list.
About this solution: The candidate's solution correctly finds the largest number in the list. The candidate uses a for loop to iterate through the list and compare each number to the current largest number. If the number is larger, it becomes the new largest number. This is a good approach as it iterates through the entire list only once.
Nov 09
Puzzles / Mathematical DifficultyHard Python
Given a list of numbers, find the two numbers with the greatest product and return that product.
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The candidate has correctly identified that the last two numbers in the list will be the largest two numbers and has sorted the list in ascending order. This is the optimal solution.
Nov 09