Cracking the Akuna Capital General Interview: FunWithAnagrams & CommsHandler Challenges

akunacapital | General | Interview Experience

Interview Date: Not specified
Result: Not specified
Difficulty: Not specified

Interview Process

The interview consisted of several rounds, including coding challenges and theoretical questions. The coding challenges focused on implementing specific algorithms and classes, while the theoretical questions assessed understanding of data structures and SQL.

Technical Questions

  1. funWithAnagrams

    • Topic: Strings, Sorting, Set
    • Task: Given an array of strings, remove all strings that are anagrams of previously encountered strings, retaining only the first occurrence. Output the remaining strings in lexicographical order.
  2. CommsHandler

    • Topic: Class and Objects, Exception Handling
    • Task: Implement two classes: ConnectionException and CommsHandler. The CommsHandler class must support three methods: connect, hangup, and clear_all. Only one pair of users is allowed to communicate at the same time, and attempts to connect to oneself or repeat connections must raise a ConnectionException. The hangup method must correctly terminate the current connection, while clear_all clears all connection states.

Tips & Insights

Focus on understanding the concepts of anagrams and exception handling in object-oriented programming. Practice coding problems related to strings and class design to prepare effectively for similar interviews.