infosys sp role

infosys logo
infosys
sp roleOngoing
September 7, 20241 reads

Summary

I recently interviewed for the sp role at infosys, where I was presented with a variety of data structure and algorithm questions, including a specific problem on removing adjacent duplicates.

Full Experience

I had my interview for the sp role at infosys. The session was primarily focused on coding, covering multiple data structures and algorithms. I recall being asked questions related to arrays, stacks, dynamic programming, and binary trees. One of the array-based questions specifically involved logic to remove adjacent duplicates from a sequence.

Interview Questions (1)

Q1
Remove Adjacent Duplicates
Data Structures & AlgorithmsMedium

The problem involved processing a sequence (likely a string or an array) and removing any adjacent duplicate elements. For example, if the input was 'azxxzy', after removing 'xx', it would become 'azzy'. Subsequently, removing 'zz' would yield 'ay'.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!