Essential cookies keep authentication working. With your permission, we also use analytics cookies to understand and improve the product. Read our Privacy Policy

DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPricingBlog
ProLogin

Interview Questions

Real questions from top companies in Python/Coding

700+ Easy450+ Medium650+ Hard
All CategoriesBehavioralSpark/Big DataSQLPython/CodingSystem Design/ArchitectureCloud/ToolsGeneral/Othereasymediumhard
61

How would you implement a program to determine the frequency of each letter in a string?

Python/Codingeasy2 min read
Delivery Hero
β†’
62

How would you test these functions with edge cases?

Python/Codingeasy2 min read
Microsoft
β†’
63

Implement a Python function to count unique words from a file and write them to another file.

Python/Codinghardjoinpython2 min read
American Express
β†’
64

Implement a context manager class for a sequence generator using __enter__ and __exit__

Python/Codingeasy2 min read
Moonfare
β†’
65

Implement a function to find the maximum sum subarray (Kadane's algorithm).

Python/Codingeasy1 min read
HashedIn
β†’
66

Implement a function to reverse a string without using built-in methods.

Python/Codingeasy2 min read
HashedIn
β†’
67

Implement a generator function to yield Fibonacci numbers.

Python/Codingeasy2 min read
Moonfare
β†’
68

Implement a program to find the intersection of two lists.

Python/Codingeasy2 min read
Delivery Hero
β†’
69

Implement a program to remove duplicates from a list while maintaining order.

Python/Codingeasy2 min read
Delivery Hero
β†’
70

Implement a recursive algorithm to find the nth Fibonacci number.

Python/Codinghardpartition0.6 min read
Goldman Sachs
β†’
71

Implement an algorithm to find the longest common prefix among an array of strings.

Python/Codingmediumpartitionspark0.6 min read
Disney+ Hotstar
β†’
72

Implement an algorithm to find the longest ordered subsequence of vowels in a given string.

Python/Codinghardspark0.6 min read
Expedia
β†’
73

List Comprehension - example

Python/Codingeasy0.7 min read
LTIMindtree
β†’
74

List customers with more than 5 orders.

Python/Codingmediumjoinpartitionspark0.6 min read
Comcast
β†’
75

List every combination of dept_name, employee_name, and city such that the employee belongs to the department and the same city in which the department is located.

Python/Codingmediumjoin0.6 min read
Freight Tiger
β†’
76

Multiprocessing in Python - explain with example

Python/Codinghardpartitionpythonwindow0.5 min read
NAB
β†’
77

Optimize a function to calculate moving averages of user engagement.

Python/Codinghardoptimizationsparkwindow0.5 min read
Disney+ Hotstar
β†’
78

Partitioning a Linked List based on a value

Python/Codinghardpartitionspark0.6 min read
Walmart
β†’
79

Problem based on lists operations

Python/Codingeasy0.5 min read
McKinsey
β†’
80

Programming languages and their application in past projects.

Python/Codinghardairflowetlpython0.6 min read
ZS Associates
β†’

Reading isn't practice. Get AI feedback on your answers.

Type or paste your answer to any of these questions and our AI Coach scores it, highlights gaps, and rewrites it at FAANG quality. Free to try.

Try AI Answer Coach β€” FreeStart a Mock Interview
Previous12345Next
Categories
All QuestionsSQLSpark / Big DataPython / CodingSystem DesignCloud / ToolsBehavioral
By Company
AmazonGoogleDatabricksSnowflakeAWSAzureMicrosoftNetflixUberTCS
Interview Guides
All GuidesTop SQL QuestionsTop Spark QuestionsPySpark QuestionsTop Python QuestionsTop System DesignKafka QuestionsAirflow QuestionsSQL Window FunctionsETL QuestionsData Modeling
Products
AI Interview CoachAnswer AnalyzerSQL PlaygroundResume AnalyzerAnswer Vault PDFsPricing
Company
About & Editorial PolicyContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
Β© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer