Junior Fullstack Developer Interview Questions

3,986 junior fullstack developer interview questions shared by candidates

Given a string s and two words w1 and w2 that are present in S. The task is to find the minimum distance between w1 and w2. Here, distance is the number of steps or words between the first and the second word. Input : s = “geeks for geeks contribute practice”, w1 = “geeks”, w2 = “practice” Output : 1 There is only one word between the closest occurrences of w1 and w2. Input : s = “the quick the brown quick brown the frog”, w1 = “quick”, w2 = “frog” Output : 2
avatar

Senior Fullstack Engineer

Interviewed at RingCentral

3.5
Apr 17, 2024

Given a string s and two words w1 and w2 that are present in S. The task is to find the minimum distance between w1 and w2. Here, distance is the number of steps or words between the first and the second word. Input : s = “geeks for geeks contribute practice”, w1 = “geeks”, w2 = “practice” Output : 1 There is only one word between the closest occurrences of w1 and w2. Input : s = “the quick the brown quick brown the frog”, w1 = “quick”, w2 = “frog” Output : 2

Viewing 3841 - 3850 interview questions

Glassdoor has 3,986 interview questions and reports from Junior fullstack developer interviews. Prepare for your interview. Get hired. Love your job.