Coding Interview in Java

Coding Challenges and Solutions (Java, Part 2)

View the Project on GitHub arskov/java-alg-2

Coding Challenges and Solutions (Java, Part 2)

  1. Merge Strings Alternately
  2. Greatest Common Divisor of Strings
  3. Kids With the Greatest Number of Candies
  4. Can Place Flowers
  5. Reverse Vowels of a String
  6. Reverse Words in a String
  7. Product of Array Except Self
  8. Increasing Triplet Subsequence
  9. String Compression
  10. Move Zeroes
  11. Is Subsequence
  12. Container With Most Water
  13. Max Number of K-Sum Pairs
  14. Maximum Average Subarray I
  15. Maximum Number of Vowels in a Substring of Given Length
  16. Max Consecutive Ones III
  17. Longest Subarray of 1’s After Deleting One Element
  18. Find the Highest Altitude
  19. Find Pivot Index
  20. Find the Difference of Two Arrays
  21. Unique Number of Occurrences
  22. Determine if Two Strings Are Close
  23. Equal Row and Column Pairs
  24. Removing Stars From a String
  25. Asteroid Collision
  26. Decode String
  27. Number of Recent Calls
  28. Dota2 Senate
  29. Delete the Middle Node of a Linked List
  30. Odd Even Linked List
  31. Reverse Linked List
  32. Maximum Twin Sum of a Linked List
  33. Maximum Depth of Binary Tree
  34. Leaf-Similar Trees
  35. Count Good Nodes in Binary Tree
  36. Path Sum III
  37. Longest ZigZag Path in a Binary Tree
  38. Lowest Common Ancestor of a Binary Tree
  39. Binary Tree Right Side View
  40. Maximum Level Sum of a Binary Tree
  41. Search in a Binary Search Tree
  42. Delete Node in a BST
  43. Keys and Rooms
  44. Number of Provinces
  45. Reorder Routes to Make All Paths Lead to the City Zero
  46. Evaluate Division
  47. Nearest Exit from Entrance in Maze
  48. Rotting Oranges