20 Coding Question Asked in Coding Interview

So here is List of 20 Coding which can be asked in Coding Interview.

  1. How is a bubble sort algorithm implemented?
  2. How to print the first non-repeated character from a string?
  3. How to find the first non repeated character of a given String?
  4. How do you find duplicate numbers in an array if it contains multiple duplicates?
  5. How do you remove duplicates from an array in place?
  6. How are duplicates removed from an array without using any library?
  7. How do you find the middle element of a singly linked list in one pass?
  8. How is a binary search tree implemented?
  9. How do you traverse a given binary tree in preorder without recursion?
  10. How do you check if a given linked list contains a cycle? How will you find initial node of the cycle?
  11. How is a merge sort algorithm implemented?
  12. How do you print all nodes of a given binary tree using inorder traversal without recursion?
  13. How do you reverse a singly linked list without recursion?
  14. How is a radix sort algorithm implemented?
  15. How do you swap two numbers without using the third variable?
  16. How do you design a vending machine?
  17. Write a program to find prime factors of an integer?
  18. What is the difference between Comparison and Non-Comparison Sorting Algorithms?
  19. Difference between a stable and unstable sorting algorithm?
  20. What is Depth First Search Algorithm for a binary tree?

Leave a Comment