Question: startlndex identifies the row in the array at which you should begin to add the words in the file. If after calling the function a

startlndex identifies the row in the array at which you should begin to add the words in the file. If after calling the function a first time I called it again with the below file and startIndex= 9: moreMisspelledWords.tsw ocen ocean ocan ocean Then I would expect my array to look like this. Your function should return 11 for 11 word pairs in the array [chickn, chicken], [chicke, chicken], [chcken, chicken], [fsh, fish], fishe, fish], [bubbls, bubbles. [bubles, bubbles per, pear]. peart, pearl. [ocen, ocean], [ocan, ocean] We will call your function multiple times with different files and the same array to make sure you append new words correctly Edge cases: if the file does not exist, return -1 if the starting row of the array is greater than the total number of rows in the array, return -1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
