This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Write a function that takes three arguments, 2 arrays (a and b) and 1 integer (c) | |
then returns one array (d) which is created by inserting all elements in b into a at indexes | |
which are spaced by the integer value. | |
Consider all possible corner cases and print out the final array (d). | |
e.g | |
a = ["a", "b", "c", "d", "e", "f"] | |
b = ["1", "2", "3"] | |
c = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Find the longest substring in string. Output the length of the substring | |
e.g | |
s = 'ababc' | |
sub = 3 | |
*/ | |
const s = 'ababc'; |
OlderNewer