Find longest Contiguous sub array from two String Arrays
Anonymous User
3147

String[] user1 = {"grey", "pink", "green", "red","black","silver"};
String[] user2 = {"grey", "rose red", "white", "pink", "green", "red","black","silver"};

	Look for longest contiguous sub Array in two String Arrays.
	Result will be ["pine", "green", "red", "black", "silver"]
	
	

A leetcoder asked "if there're multiple subarrays with the same length, are you expecting to get any subarray or all longest subarrays?"
This is not required but the interviewer did mention if I can get it then it is bonus point.

Comments (4)