Reverse a string in Java without StringBuilder.reverse(): the two-pointer swap, building a new string, recursion, and the Unicode edge case interviewers like.
Articles
Write a query to find the second highest salary from an Employee table.
Four ways to find the second highest salary in SQL (MAX subquery, DENSE_RANK, LIMIT/OFFSET and TOP), how to handle ties and missing rows, and how to get the Nth highest.
How does a HashMap work inside, and what changed in Java 8?
How Java’s HashMap stores entries in buckets, how hashing, equals and hashCode, collisions and resizing work, and the Java 8 change to tree bins.
You are asked to work on a technology you have never used. How will you start?
How to answer the managerial round question about being put on a technology you have never used: a step-by-step plan and a sample STAR answer.
Write a program to check whether a number is prime, then make it faster.
Check whether a number is prime in Java: the simple version, the square-root version, skipping even numbers, the 6k ± 1 trick, and the Sieve of Eratosthenes for many numbers.
Why do you want to join TCS?
How to answer “Why do you want to join TCS?” in an interview, with a structure, sample answers for freshers and experienced candidates, and the mistakes to avoid.