Question: Task 1 Propamining Lenguses longrightarrow Jeva 8 You are given an array S consisting of N strings. Every string is of the same length M
Task
Propamining Lenguses longrightarrow
Jeva
You are given an array consisting of strings. Every string is of the same length Your task is to find a palr of strings in array such that here exists a position in which both of the strings have the same lette oth the index in array and the posittons in the strings are number is zero. Pdt Whave the same letter b in position On the other hand or strin. "abc' and "bea' there does not exist a position in whit. they have the se veletter.
Write a inctions
cla:
Solution public int solution
ring S:
that, given a zeroindexed arroy of string streturns an arey describing a palr of stinges from which share a common letter at some index. If there is no such paits the function should retum an empty array. If there is more than one cerrect answet the funetlon can retum any of them.
The result should be represented as an arroy containing three integers. The first two integers are the indexes in of the strings belonging to the pair. The third integer is the postition of the common letter.
For abc "bea", "dbe as above, the reault arroy should be reppesented as Another correct answer is as the order of indexes of strings does not matter.
Ineeed help with the best performance code since I can complete this task but got only Thanks
Examples:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
