Est-ce votre entreprise ?
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.
Utilisateur anonyme
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);