Top Coding Interview Question – Solved

10 Live
Given a String and an Array Your solution will be scored against multiple hidden test cases, with a sample case provided for reference. The default code includes a mechanism for reading input strings. You will need to parse these strings into the appropriate variables as needed. The output data type does not matter, as long as the characters in the output match the expected result. Task: Given a long string S and an array of smaller strings T, write a program to check if each string in T exists within S. When checking, ignore differences in uppercase and lowercase letters. Example: If S is "Coffeeshop" and T is "hot coffee", then: S does not contain "hot". S does contain "coffee".

Asked in: No companies listed

Image of the Question

Question Image Question Image

All Testcases Passed βœ”



Passcode Image

Solution


Please login to view the solution


Related Questions

| You are given a board of size M Γ— N where each cell can be either empty ('O') o… |
| Undirected Coloured Graph Shortest Path You are given an undirected weight… |
| Village Voyage A computer game "Village Voyage" has N villages (labeled 1 to… |
| Academic Decathlon Students are being selected for an academic decathlon tea… |
| Sum of Arrays Given two arrays each of length n, arr1 and arr2, in one opera… |
| Count Swaps During Custom Sorting Analyze the efficiency of the following so… |