Micro Focus interview question

1)Hacker Rank Test Consisting of questions on Stack ( Balanced Paranthesis ), Decode a String, and MultiThreading question on making a transaction synchorinzed . 2) F2F interview rounds after 1 week on the Micro focus development Center in banglore. Questions Asked: Implement Stack using queue data structure. 2) Given two array containg N and N+1 elements respectively , Both the array contains N same elements , Find the extra element ? Ex: arr1 = { 1,2,3,4,5} arr2 = { 1,4,3,5,6,2} Ans : 6 3) Given a string as MMMIIICCROOOOFFFFFOOOOCCCUUUSSSSS Do in-place editing of the string to return MICROFOCUS. You are not allowed to use any helper functions or create a new string/array.

Interview Answers

Anonymous

12 Feb 2021

string str = "MMMIIICCROOOOFFFFFOOOOCCCUUUSSSSS"; string last = string.Empty; int strlen = str.Length - 1; for (int x = 0; x < strlen; x++) { if (x == 0) { last = str.Substring(0, 1); str = str + "|" + last; } if (str.Substring(x, 1) != last) { last = str.Substring(x, 1); str = str + last; } } str = str.Substring(str.IndexOf("|") + 1);

1

Anonymous

28 Feb 2021

Through questions like this, interviewers are mostly trying to test your skillset (and its relevance to the role) as robustly as possible, so be prepared for multiple offshoots and followups. It could be a useful exercise to do mocks with friends or colleagues in Micro Focus to get a real sense of what the interview is actually like. Alternatively Prepfully has a ton of Micro Focus Software Development Engineer experts who provide mock interviews for a pretty reasonable amount. prepfully.com/practice-interviews