Time limit : 120 mins
The below 5 questions were asked in the TikTok online assessment on the Hackerrank platform.
2 MCQS
- based on this topic - cross site cookies
- ArrayList is preferred over LinkedList for which operation?
a. Get by index b. Add an element c. Remove an element d. Search an element
3 problems:
- Eating candies - https://codeforces.com/problemset/problem/1669/F
- Minimum swaps required to sort the array -
https://www.hackerrank.com/challenges/minimum-swaps-2/problem
- Processing times -
https://stackoverflow.com/questions/74304267/count-minimum-time-to-finish-the-given-tasks
I was able to solve the first 2 problems and I attempted the 3rd problem with brute force approach and 1/4 test cases only passed.