Twitter Online Assessment Question
Anonymous User
4811

I recently appeared for online assessment for internship at Twitter. Each question was as follows:-

  • Given that you are at (0, 0) coordinate and you can move one step either up or right. Is it possible to reach some coordinate (x, y). Is yes, then print "yes", else "no".
  • An token based authnetication is implemented in such a way that logs contains tuples of the form (a b c) where 'a' represent tokent_id; 'b' represents type of action, if its 0 then it means token generation and if its 1 then it represents token destruction; c represents timestamp . Every token has maximum lifespan of N time units after which it will get destroyed on its own. Given logs in the described format and arranged in ascending order wrt to c tell how many tokens are active?
  • Minimum Number of Manipulations required to make two Strings Anagram Without Deletion of Character
Comments (3)