Skip to content

Utkarsh731/python-interview-coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Interview Coding Problems
Unlock your coding potential with this ultimate repository of software engineering interview problems!

From Level 1 to Level 2 positions, we've got you covered. Get ready to ace your interviews with our Python-based solutions.

For Theoretical Questions - Crack Your Python Interview with These Top Python Questions and Answers

Questions List

Each question has a detailed solution in Python with comments. Whether you are preparing for an interview, or just want to improve your coding skills, this repository is a great resource for you.

  1. Flatten an array consisting of inner arrays into a single array.
  2. 21 Sticks problem - code to ensure that you will never lose.
  3. Check if a string has balanced parenthesis.
  4. Find a pair with product equal to a given number in a distinct element array.
  5. Build the lowest possible number from a string of digits by removing n digits.
  6. Return the Run Length Encoded string for the input string.
  7. Get an array of the same size with the product of all elements in the original array except for the element at that index.
  8. Determine if a number is a power of 2.
  9. Maximize partitions with no common characters in substrings.
  10. Find the square root of a whole number without using standard functions.
  11. Get the length of the longest valid parentheses substring.
  12. Check if a number is present in a matrix with sorted rows and columns.
  13. Remove all vowels from a string using a decorator.
  14. Reverse the bits of a 32-bit unsigned integer.
  15. Check if a string is a palindrome by ignoring spaces.
  16. Check if any 2 elements in an array sum to a given sum.
  17. Determine if there exist three elements in an array whose sum is exactly x.
  18. Get the common prefixes in an array of strings or return an empty array.
  19. Find the second max element in an array.
  20. Print a diamond shape.
  21. Print a right angle triangle of stars.
  22. Print a right angle triangle of stars in the opposite direction.
  23. Print a mirror right angle triangle of stars.
  24. Print a mirror right angle triangle of stars in the opposite direction.
  25. Print a right angle triangle of numbers.
  26. Print a right angle triangle of numbers in the opposite direction.
  27. Print a mirror right angle triangle of numbers in the opposite direction.
  28. Print the fibonacci series till the nth term using recursion.
  29. Print the fibonacci series till the nth term without using recursion.
  30. Read and print the SQLite schema for all tables.
  31. Given an array of meeting time intervals consisting of start and end times[[s1,e1],[s2,e2],...](si< ei), find the minimum number of conference rooms required. Input:[[0, 30],[5, 10],[15, 20]] Output: 2 Input: [[7,10],[2,4]] Output: 1
  32. Take input for the number of elements, then take all the elements, and ask user which comprehension he wants- List, Dict, Set or Generator Comprehension. Then create comprehension according to the user's input. Returns: response (list): List, dictionary, set, or generator comprehension created based on user input.
  33. What are map, filter and reduce in python, write a sample code for them.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages