Data Manipulation

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 Manipulation DifficultyMedium Python
This technical problem deals with finding the sum of odd numbers in a list. The input is a list of integers, and the output is the sum of the odd numbers in the list.
About this solution: The candidate's solution correctly returns the sum of the odd numbers in the list. The approach is straightforward and easy to follow.
Jan 29
Python / Data Manipulation DifficultyMedium Python
The function should take a list of integers as input and return the sum of the even integers in the list.
About this solution: This solution is optimal because it uses a generator expression to filter the list and sum the even numbers. This is optimal because it is a single pass through the list, and it does not require any additional memory. It is also very readable.
Jan 28
Python / Data Manipulation DifficultyMedium Python
This problem asks the reader to write a function that calculates the sum of a list of integers. 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 24
Python / Data Manipulation DifficultyMedium Python
This Python function finds the sum of all the integers in a given list.
About this solution: This solution correctly finds the sum of all integers in a list. However, it is not very robust - for example, it would not work if the input list contained non-integer values. A more robust solution would check the data type of each list element before performing the summation.
Nov 23
Python / Data Manipulation DifficultyMedium Python
This Python function finds the largest number in a given list of integers. For example, if the input list is [1, 2, 3, 4, 5], the output will be 5 .
About this solution: The candidate's solution correctly finds the largest number in the list. The candidate could have used the built-in max() function to find the largest number in the list.
Nov 22
Python / Data Manipulation DifficultyMedium Python
This technical problem involves writing a function that takes a list of integers as input and returns the sum of the odd numbers in the list. An example input and output are provided in the problem statement .
About this solution: This solution correctly returns the sum of all odd numbers in the given list. However, it is not the most efficient solution as it loops through the entire list regardless of whether or not there are any odd numbers present. A more efficient solution would check if there are any odd numbers in the list before looping through it.
Nov 22
Python / Data Manipulation DifficultyMedium Python
This technical problem deals with adding elements in an array in Python. Given an array of integers, the goal is to return the sum of the elements in the array. An example input would be [1, 2, 3] and the corresponding output would be 6.
About this solution: The candidate's solution is correct and uses the built-in sum function, which has a time complexity of O(n).
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