Flask

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 / Web Development DifficultyMedium Python
This problem deals with finding the sum of all integers in a list that are greater than or equal to 10. An example input and output are provided.
About this solution: The candidate's solution correctly solves the problem. They iterate through the list, checking if each integer is greater than or equal to 10. If it is, they add it to the sum. This is a solid approach.
Jan 27
Python / Web Development DifficultyMedium Python
This problem asks the user to write a function that takes in a list of integers and returns the sum of all the even numbers in the list. An example input and output are given.
About this solution: This solution correctly returns the sum of the even numbers in the list. The approach is to use a list comprehension to create a new list consisting only of the even numbers in the original list, and then to use the built-in sum function to sum up the numbers in the new list. This is a concise and elegant solution.
Nov 24
Python / Web Development DifficultyMedium Python
This Python function removes all the vowels from a given string.
About this solution: The candidate's solution is optimal because it uses a for loop to iterate through the string and check if each character is a vowel. If it is not a vowel, it is added to the new string.
Nov 24
Python / Web Development DifficultyMedium Python
To find the sum of a list of integers, simply add all the numbers in the list together. In the example given, the sum would be 15.
About this solution: The candidate's solution is correct and uses the built-in sum function, which is an optimal solution.
Nov 22
Python / Web Development DifficultyMedium Python
Find the sum of all elements in a list. This can be done in Python by iterating through the list and adding each element to a total.
About this solution: This solution is correct and efficient. The candidate has used the built-in sum function, which is the most efficient way to sum a list.
Nov 21
Python / Web Development DifficultyHard Python
Given a set of distinct integers, this function will print the size of the largest subset such that no two integers in the subset sum to more than k. For example, given the input [ 1, 2, 3, 4, 5] and k = 6, the output would be 3.
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The approach is sound and the time and space complexity are both optimal.
Nov 19
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
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