Arrays and Strings

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:
Code Problem / Data Structures and Algorithms DifficultyMedium Python
The problem asks for the sum of all elements in an array. An example input is given as [1, 2, 3, 4, 5] and the expected output is 15.
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The candidate has used the built-in sum function, which is an optimal solution.
Nov 12
Code Problem / Data Structures and Algorithms Python
Given a string consisting of only lowercase letters, this program generates a new string with the same letters in reverse order. For example, an input of "abcdefg" would produce an output of "gfedcba".
About this solution: The candidate's solution is correct and uses the built-in function reversed(). The time and space complexity of the solution is O(n).
Nov 11
Code Problem / Data Structures and Algorithms Python
To find the sum of all elements in an array, simply iterate through the array and add each element to a total sum.
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The candidate's approach is clear and understandable.
Oct 27