PYTHON INTERVIEW CODING QUESTIONS
1. Remove duplicates from a list while maintaining order.
2. Rotate an array by k positions.
3. Find the missing number in a sequence of integers.
4. Find all duplicate elements in a list.
5. Move all zeroes in a list to the end while keeping the order of other elements
Pattern Printing (Very Common in TCS/Wipro)
[Link] a pyramid of stars
2. Print an inverted pyramid.
[Link] Floyd’s triangle.
[Link] Pascal’s triangle.
[Link] a diamond pattern using stars.
Repeated Coding Questions (TCS / Infosys / Accenture / Wipro)
Reverse a string without using built-in functions.
Check if a string is a palindrome.
Find the frequency of characters in a string.
Remove vowels from a string.
Find the first non-repeating character in a string.
Check if two strings are anagrams , panagram.
Array/List-Based
Find the largest and smallest element in an array.
Find the second largest element in an array.
Remove duplicates from an array.
Rotate an array by k positions.
Find the missing number in a sequence.
NUMBERS PROBLEMS:
Check if a number is an Armstrong number.
Check if a number is a Perfect number.
Find GCD and LCM of two numbers.
Print all prime numbers in a range.
Convert decimal to binary without using bin().