Interview Questions and Answers :: Brocade
Home > Experience Archives > Brocade > Interview Question Set 7 > Discussion
1. N number of element("ab", "zb", "cd", "wx", "ab","gv","cd",..."ab", ...."cd") stored in a contagious memory. Element size is 2 byte character.
Remove the alternate repeated elements(("ab", "zb", "cd", "wx", "--","gv","--",..."ab", ...."cd")).
Write an algorithm should meat time complexity O(1) and space complexity constant.
Answer:
No Discussion on this question yet!
No Discussion on this question yet!