
Learn core concepts, essential formulas, and attempt practice questions designed on the latest TCS NQT testing patterns.
Which of the following is an anagram of 'TRIANGLE'?
Correct Answer: A) INTEGRAL
Step-by-step Solution: 'INTEGRAL' contains the exact same letters as 'TRIANGLE' in different order, making them anagrams.
How do you check a string palindrome efficiently?
Correct Answer: A) Two-pointer matching from ends
Step-by-step Solution: Comparing characters using two pointers moving inwards requires no extra memory, running in O(N) time and O(1) space.
Sorting string characters is a simple way to verify anagram properties.