Real questions from top companies in Python/Coding Β· easy
Given the Infix, Prefix, or Postfix notation of an expression, write the code to compute the final result.
Given the input string "AAABBBCCCDDDAAA," compress it to output "A3B3C3D3A3."
How are strings handled in Scala? How are they different from Java strings?
How do you clean missing values in a pandas DataFrame?
How do you install a Python library that is not in the Databricks runtime?
How do you sort a dictionary based on values?
How would you configure workload management (WLM) queues for heavy queries?
How would you handle errors in your code?
How would you implement a program to determine the frequency of each letter in a string?
How would you test these functions with edge cases?
Identify the Unix command that lists files with specific permissions
Implement a context manager class for a sequence generator using __enter__ and __exit__
Implement a function to find the maximum sum subarray (Kadane's algorithm).
Implement a function to reverse a string without using built-in methods.
Implement a generator function to yield Fibonacci numbers.
Implement a program to find the intersection of two lists.
Implement a program to remove duplicates from a list while maintaining order.
List Comprehension - example
Problem based on lists operations
Python Code Using Constructors in a Class
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.