TCS TAG test 12.01.2026
Summary
This post details two coding problems from a TCS TAG test. The first question involves finding the prime factors of an integer in ascending order. The second is a sliding window problem requiring the ...
Interview Experience
## Problem - 01 Given an integer `n`, print its prime factors in ascending order. Example: `Input: 36 Output: 2 2 3 3` **ā Approach 1 ā Brute Force (Check Prime First) š¹ Idea** ⢠Try every number from 2 ā n ⢠Check if it is prime ⢠If prime ā divide repeatedly **š¹ Complexity** `O(nān) ā slow fo...


