Longest common substring. 2022 Best
This paper answers the following questions: 1. Write a function that takes in two strings and returns the longest common substring. 2. Write a function that takes in an array of numbers and returns a new array of the same numbers without any duplicates. 3.
Longest common substring.
These are the questions: 1. Write a function that takes in two strings and returns the longest common substring. 2. Write a function that takes in an array of numbers and returns a new array of the same numbers without any duplicates. 3. Write a function that takes in an array of numbers and returns the largest product of any two numbers in the array. 4. Write a function that takes in an array of numbers and returns a new array with the same numbers, with all the zeros moved to the end of the array. 5. Write a function that takes in an array of words and returns the word that appeared the most times in the array.
Longest common substring.
6. Write a function that takes in an array of numbers and returns all the pairs that add up to 10. 7. Write a function that takes in two arguments, an array of sorted numbers and a number to find, and uses binary search to return the index of the number to find in the array. 8. Write a function that takes in an array of numbers, where every number shows up twice except for one, and returns the number that only shows up once. 9. Write a function that takes in an array of strings and returns all the strings that show up 3 or more times.
10. Write a function that takes in an array of numbers and returns the first number that shows up more than once. https://youtu.be/BysNXJHzCEs
Attached Files
