Tiktok interview Singapore 2022 Jan
Anonymous User
3773

3 rounds of interviews, first 2 with engineers and the third one with engineering manager. After that HR round and offer negotiation:

  • All rounds have the same style it starts with questions around your experience and describe a certain SD behind a project you worked on, here they're mainly looking for you to discuss how you handle concurrency, cache and seperation of different layer (e.g. how to handle hot-keys and how to consume a third party service/library)
  • LC a mix of miduim and easy LC
    1- print duplicates in O(n) time O(1) space from an array where 0=<number=<length
public void printDuplicates(int[] numbers){
        for(int i=0; i < numbers.length; i++){
            int mapKey = Math.abs(numbers[i]);
            if(numbers[mapKey] < 0){
                System.out.print(Math.abs(numbers[i]) + " ");
            }else {
                numbers[mapKey] = -numbers[mapKey];
            }
        }
    }

2- validate parentheses O(n) space/time: https://leetcode.com/problems/valid-parentheses/
3- parse a string to int without using pre built functions: https://leetcode.com/problems/string-to-integer-atoi/

Comments (6)