Software Development Internship Interview Questions

205 software development internship interview questions shared by candidates

Given three strings s1, s2 and s3. Write a function that checks whether s3 is an interleaving of s1 and s2. s3 is said to be interleaving s1 and s2, if it contains all and only characters of s1 and s2 and order of all characters in individual strings is preserved. Input: s1 = “AB”, s2 = “C”, s3 = “ACB”, Output: true s3 has all characters of s1 and s2 and retains order of characters of s1. Input: s1 = “XXY”, s2 = “XXZ”, s3 = “XXXXZY”, Output: true The string BBAZXY has all characters of the other two strings and in the same order. Input: s1 = “YX”, s2 = “X”, s3 = “XXY” Output: false XXY is not interleaved of YX and X. The strings that can be formed are YXX and XYX
avatar

Software Development Internship

Interviewed at Tekion

4.2
Oct 10, 2024

Given three strings s1, s2 and s3. Write a function that checks whether s3 is an interleaving of s1 and s2. s3 is said to be interleaving s1 and s2, if it contains all and only characters of s1 and s2 and order of all characters in individual strings is preserved. Input: s1 = “AB”, s2 = “C”, s3 = “ACB”, Output: true s3 has all characters of s1 and s2 and retains order of characters of s1. Input: s1 = “XXY”, s2 = “XXZ”, s3 = “XXXXZY”, Output: true The string BBAZXY has all characters of the other two strings and in the same order. Input: s1 = “YX”, s2 = “X”, s3 = “XXY” Output: false XXY is not interleaved of YX and X. The strings that can be formed are YXX and XYX

1. Given 2 strings, find if the 2nd string can be formed using the 1st string by applying at most one conversion at a time. In a conversion, you have to convert all occurrences of one Latin alphabet to another.
avatar

Software Development Engineer Internship

Interviewed at Razorpay

3.5
Aug 26, 2021

1. Given 2 strings, find if the 2nd string can be formed using the 1st string by applying at most one conversion at a time. In a conversion, you have to convert all occurrences of one Latin alphabet to another.

Viewing 91 - 100 interview questions

Glassdoor has 205 interview questions and reports from Software development internship interviews. Prepare for your interview. Get hired. Love your job.