Python

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:
Python / Data Structures DifficultyMedium Python
To find the sum of integers in an array, simply iterate through the array and add each integer to a total sum.
About this solution: This solution is complete and solves the problem. The approach is straightforward and easy to understand.
Nov 18
Python / Web Development DifficultyMedium Python
This problem asks the user to return a list of integers that are divisible by 3. The input is a list of integers, and the output is also a list of integers.
About this solution: The candidate's solution is correct and uses a list comprehension, which is an efficient way to solve the problem.
Nov 18
Python / Web Development DifficultyMedium Python
Write a Flask route that returns the sum of a list of integers.
About this solution: This solution is correct and demonstrates a level of completeness. The candidate has used the sum() function, which is an optimal solution. The candidate has also used a one-liner, which is also optimal.
Nov 18
Python / Web Development DifficultyMedium Python
This technical problem deals with writing a function that returns the sum of the elements in an array. An example input is given as [1, 2, 3, 4, 5], and the expected output is 15.
About this solution: This is a great solution! It is concise, readable, and uses a built-in function, which is likely to be more efficient than a custom solution.
Nov 18
Python / Web Development DifficultyMedium Python
Given a string of words, this function will return the length of the longest word. For example, given the input string "The quick brown fox jumps over the lazy dog", the function will return 6, since "quick" is the longest word in the string.
About this solution: This solution correctly finds the length of the longest word in a string. It splits the string into a list of words, then loops through the list to find the longest word. This is a good approach.
Nov 18
Python / ORM and SqlAlchemy DifficultyMedium Python
This problem asks the reader to write a Python function that calculates the sum of the squares of all positive integers less than or equal to a given integer n. An example input and output are provided .
About this solution: This solution is complete and solves the problem. The approach is to use a list comprehension to square each number in the range from 0 to n, inclusive, and then sum the resulting list.
Nov 18
Python / Modules and Packages DifficultyMedium Python
This Python function calculates the sum of the even numbers in a given list.
About this solution: This solution correctly finds the sum of all even numbers in the given list. The approach is straightforward and easy to follow. Well done!
Nov 18
Python / Web Development DifficultyMedium Python
This problem asks the user to return the sum of all the elements in an array. An example input and output is provided.
About this solution: This solution is complete and solves the problem. The approach is straightforward and easy to understand.
Nov 17