I applied for TikTok's New Graduate Software Engineer role and failed!

Опубликовано: 22 Март 2026
на канале: Ugur Codes
781
21

This is my first talk only video if it's not well organized sorry about it!

If I were someone who only studied for necessary things in Uni and have 20 + 20 days necessary internships, I would study leetcode & hackkerrank but having lots of experience and still needing to solve these algorithm questions didn't make sense to me.

I forget to tell you but I made 11/15 and 14/15 in test cases. I know there are probably some secret test cases as well.

My first question was something like this:

there is a binary array, consists of 0 and 1 randomly ordered. Write a function that makes minimum swaps between numbers so that the array has minimum transition between 0s and 1s.

second one was like

given an array favoriteCategories, consists of numbers, write a function to find the highest number of common interests between any two numbers in the array?

4,2,6,8 - output 4 because out of all possible pairs in the array, for pair 4,8 , 4 is the highest common interest.