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 the elements in a list of integers, simply iterate through the list and add each element to a total.
About this solution: This is a good solution that demonstrates a level of completeness and solves the problem. The approach is straightforward and easy to understand.
Nov 21
Python / Data Manipulation DifficultyMedium Python
This Python function takes in a list of strings and returns a new list with all the strings in reverse order.
About this solution: This solution is correct and demonstrates a good understanding of time and space complexity.
Nov 21
Python / ORM and SqlAlchemy DifficultyMedium Python
This technical problem involves writing a function that takes a list of integers as input and returns the sum of all integers that are greater than or equal to 10. An example input and output is 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 and the code is clean and easy to read.
Nov 20
Python / ORM and SqlAlchemy DifficultyMedium Python
Design a function that takes in a string and outputs a list of all the unique words in the string.
About this solution: This solution is correct and uses an efficient approach.
Nov 20
Python / Asynchronous DifficultyMedium Python
This problem asks the user to return the sum of all the even numbers in a list. An example input would be [1, 2, 3, 4, 5], and the corresponding output would be 6.
About this solution: This solution is correct and demonstrates a good understanding of how to filter and sum a list of numbers. The approach is efficient and uses built-in functions to minimize the amount of code needed.
Nov 20
Python / REST APIs DifficultyMedium Python
Write a Python function to sum the even numbers in a list of integers.
About this solution: This solution correctly finds the sum of all even numbers in the given list. It uses a simple for loop to iterate through the list, checking if each number is divisible by 2 (i.e. is even), and if so, adding it to the running total. This is a straightforward and effective solution.
Nov 20
Python / REST APIs DifficultyMedium Python
This Python function finds the sum of all the odd numbers in a list of integers.
About this solution: This solution is complete and solves the problem. The approach is straightforward and easy to follow.
Nov 20
Python / Data Structures DifficultyMedium Python
Given an array of integers, find the maximum sum of a contiguous subarray. For example, given the array [-2, 1, -3, 4, -1, 2, 1 , -5, 4], the maximum sum of a contiguous subarray is 6 (the sum of the subarray [4, -1, 2, 1]).
About this solution: This is a great solution! The candidate has thought about the problem carefully and has come up with a very elegant solution. The candidate has also provided a clear explanation of how the solution works. Well done!
Nov 20