[go: up one dir, main page]

0% found this document useful (0 votes)
15 views2 pages

Top Coding Questions

Top coding questions

Uploaded by

0112cs221035
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Top Coding Questions

Top coding questions

Uploaded by

0112cs221035
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Top Coding Questions

1. Check if a Number is a Palindrome.

2. Check if a String is a Palindrome.

3. Generate Fibonacci Series up to N terms.

4. Check if a Number is Prime.

5. Find All Prime Numbers up to N (Sieve of Eratosthenes).

6. Solve the Two Sum Problem.

7. Check if a Number is an Armstrong Number.

8. Check if a Number is a Perfect Number.

9. Reverse an Integer.

10. Check if Two Strings are Anagrams.

11. Find the Sum of Digits of a Number.

12. Calculate the Factorial of a Number.

13. Check if a Number is a Power of Two.

14. Check if a Number is a Perfect Square.

15. Check if a String is a Pangram.

16. Find the Longest Palindromic Substring.

17. Find the GCD of Two Numbers (Euclidean Algorithm).

18. Find the LCM of Two Numbers.

19. Find the Missing Number in an Array.

20. Check if a Number is Even or Odd.

21. Find the HCF (Greatest Common Divisor).

22. Find the Nth Fibonacci Number (Iterative/Recursive).

23. Find the Sum of All Elements in an Array.

24. Find the Maximum and Minimum Element in an Array.

25. Merge Two Sorted Arrays.

26. Find the Intersection of Two Arrays.


27. Product of Array Except Self.

28. Find the First and Last Position of an Element in a Sorted Array.

29. Search in a Rotated Sorted Array.

30. Container With Most Water.

31. Find the Missing and Repeating Number.

32. Sort an Array of 0s, 1s, and 2s.

33. Kadane's Algorithm (Maximum Subarray Sum).

34. Find the Kth Largest Element in an Array.

35. Check if Two Strings are Rotations of Each Other.

36. Count Frequency of Characters in a String.

37. Check if a Number is a Strong Number.

38. Check if a Number is a Happy Number.

39. Find the Longest Common Subsequence.

40. Longest Increasing Subsequence.

41. Check if a Number is a Magic Number.

42. Rotate an Array by K Positions.

43. Subarray with Given Sum.

44. Rotate a Matrix (90, 180, 270 Degrees).

45. Implement String Compression.

46. Defanging an IP Address.

47. Check if Parentheses are Valid (Valid Parentheses).

48. Convert Roman Numeral to Integer.

49. Convert Integer to Roman Numeral.

50. Find the Kth Missing Positive Number.

You might also like