Python Interview
Questions Asked
in
[Link]/in/asheeshlive
1. Reverse a String: Write a function
to reverse a string in Python.
2. Find Duplicates in a List: Write a
function to find duplicates in a list and
return them as a set.
3. Implement a Stack: Implement a
stack data structure in Python.
4. Check Palindrome: Write a function
to check if a given string is a
palindrome.
5. Find Missing Number: Given a list
of integers from 1 to n, with one
number missing, write a function to
find the missing number.
2 [Link]/in/asheeshlive
6. Binary Search Tree Validation: Write a
function to validate whether a given binary
tree is a valid binary search tree.
7. Count Vowels and Consonants: Write a
function to count the number of vowels
and consonants in a given string.
8. Merge Sorted Lists: Write a function to
merge two sorted lists into a single sorted
list.
[Link] a Queue: Implement a queue
data structure in Python.
10. Find Maximum Subarray Sum: Write a
function to find the maximum sum of a
contiguous subarray within a one-
dimensional array of numbers.
3 [Link]/in/asheeshlive
Follow
for more
9 February 2024
[Link]/in/asheeshlive