Cognizant vs TikTok Interview Questions

Cognizant lists 29 LeetCode interview questions while TikTok lists 351. They share 12 problems — 41% of Cognizant's bank and 3% of TikTok's. Focus on the overlap first, then drill into 17 Cognizant-only and 339 TikTok-only questions.

Overview

Cognizant

29 questions

Easy 18Medium 10Hard 1
TikTok

351 questions

Easy 34Medium 245Hard 72

Preparation Strategy

Step 1 — Shared core: Solve the 12 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Cognizant and TikTok.

Step 2 — Company-specific depth: Add Cognizant-specific problems like Palindrome Number, Count Subarrays of Length Three With a Condition, Smallest Value of the Rearranged Number and TikTok-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: TikTok skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
Cognizant
18
TikTok
34
Medium
Cognizant
10
TikTok
245
Hard
Cognizant
1
TikTok
72

Top Shared Topics

12 Shared Questions

High-priority problems to practice for both Cognizant and TikTok.

ProblemDifficulty
Two SumEasy
Longest Palindromic SubstringMedium
Longest Common PrefixEasy
Maximum SubarrayMedium
Valid ParenthesesEasy
Median of Two Sorted ArraysHard
Longest Substring Without Repeating CharactersMedium
3SumMedium
Happy NumberEasy
Move ZeroesEasy
Merge Two Sorted ListsEasy
Add Two NumbersMedium

Unique to Cognizant (17)

Problems in Cognizant's list that do not appear at TikTok.

ProblemDifficulty
Palindrome NumberEasy
Count Subarrays of Length Three With a ConditionEasy
Smallest Value of the Rearranged NumberMedium
Fibonacci NumberEasy
Valid AnagramEasy
Second Highest SalaryMedium
Remove Duplicates from Sorted ArrayEasy
Managers with at Least 5 Direct ReportsMedium
Reverse IntegerMedium
Product Sales Analysis IEasy
Merge Sorted ArrayEasy
Count PrimesMedium

Unique to TikTok (339)

Problems in TikTok's list that do not appear at Cognizant.

ProblemDifficulty
LRU CacheMedium
Number of IslandsMedium
Longest Increasing SubsequenceMedium
Number of Distinct IslandsMedium
Meeting Rooms IIMedium
Course Schedule IIMedium
Merge IntervalsMedium
Course ScheduleMedium
Trapping Rain WaterHard
Subarray With Elements Greater Than Varying ThresholdHard
Text JustificationHard
Decode StringMedium

Frequently Asked Questions

How many LeetCode questions do Cognizant and TikTok share?

Cognizant and TikTok share 12 LeetCode interview questions. 17 problems appear only in Cognizant's list and 339 appear only in TikTok's list.

What topics overlap most between Cognizant and TikTok?

The most common shared topics between Cognizant and TikTok are Array (5 shared questions), Two Pointers (4 shared questions), String (4 shared questions), Hash Table (3 shared questions), Dynamic Programming (2 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Cognizant or TikTok?

Cognizant has 18 Easy, 10 Medium, and 1 Hard questions. TikTok has 34 Easy, 245 Medium, and 72 Hard questions. TikTok has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Cognizant and TikTok?

Start with the 12 shared problems since they cover what both companies ask most often. Then add 17 Cognizant-specific and 20 TikTok-specific questions to round out your prep.

Explore More