Python / Web Development

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 involves finding the sum of all odd integers in a given list. 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.
Jan 29
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 technical problem deals with retrieving the page title from a URL using Python. The given URL is http://www.google.com and the expected output is simply "Google".
About this solution: This solution correctly imports the necessary libraries and prompts the user for input. It then uses the urllib2 library to read the contents of the website and BeautifulSoup to parse the HTML. Finally, it prints out the title of the page. This is a complete solution that correctly solves the problem.
Nov 25
Python / Web Development DifficultyMedium Python
Given an array of integers, this function returns the largest sum of consecutive integers in the array.
About this solution: The candidate's solution correctly returns the largest sum of consecutive integers in the array. The approach is straightforward and easy to follow.
Nov 25
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
This technical problem involves writing a function that takes a list of integers as input and returns the sum of the elements in the list. An example input would be [1, 2, 3, 4, 5] and the corresponding output would be 15.
About this solution: This solution is complete and solves the problem. The approach is straightforward and easy to understand.
Nov 23
Python / Web Development DifficultyMedium Python
This problem involves finding the sum of the digits of a list of integers. For example, given the input list [12, 34, 56], the output would be [3, 7, 11].
About this solution: The candidate's solution is optimal because it uses list comprehension to iterate over the list of numbers and sum the digits of each number. The solution is also optimal because it uses a generator expression to iterate over the digits of each number. The solution is also optimal because it uses the built-in sum function to sum the digits of each number. The solution is also optimal because it uses the built-in int function to convert each digit to an integer. The solution is also optimal because it uses the built-in str function to convert each number to a string.
Nov 22