In this Miniblog, I will be sharing Samsung Software Engineer Interview Competitve Programming Questions that were asked in a Real Interview.
Programming Round: Online Coding Round First round is an online programming round with 2 questions.
Coding Question 1.
- Given an array of elements and change the array in such a way that all the elements on the array are distinct. if you are replacing a value, then the replacing value should be great than the previous value and after modification sum of the elements should be as less as possible.
arr[1, 2, 3, 4, 5, 5, 5] and the result should be [1, 2, 3, 4, 5, 6, 7]
Coding Question 2.
- The second question is similar to LCS with a slight modification. that is Find the longest common subsequence that all the characters present in the subsequence should be of vowels.
input abcef, ffiocd then the answer should be 3 (abc, ioc)
Hope this Helps.