Data structures and Programs Interview questions

Data structures & Programs Interview questions

  1. Write a program to find Kth smallest element in array
  2. Write a program to remove duplicates from array
  3. Write a program to reverse a linked list
  4. Write a program to reverse a string with out using built in API
  5. How do you find the middle element of a singly linked list in one pass?
  6. How do you find the sum of two linked lists using Stack?
  7. How do you print the first non-repeated character from a string?
  8. How do you count a number of vowels and consonants in a given string?
  9. How do you count the occurrence of a given character in a string?
  10. How do you check if a given string is a palindrome?
  11. How do you print all nodes of a given binary tree using inorder traversal without recursion?
  12. How is a bubble sort algorithm implemented?
  13. How do you swap two numbers without using the third variable?
  14. Write a program to count a number of vowels and consonants in a given String?
  15. How to Print first non repeated character from String?
  16. Write a program to print first non repeated character from String?