All company sheets
Snowflake logo

Snowflake DSA interview questions

62 problems to practise before your Snowflake online test or coding round. Most widely asked first.

62
Questions
16
Easy
38
Medium
8
Hard

Commonly reported. Problems candidates often report from this company’s coding rounds. These are Astra’s own tags, not an official question list.

Snowflake is hiring · 18 open roles on Astra right nowView roles

62 questions

  1. 1

    Best Time to Buy and Sell Stock

    EasyArrayTagged at 7 companies
  2. 2

    Merge Two Sorted Linked Lists Recursively

    EasyRecursionTagged at 7 companies
  3. 3

    Solve the Classic Tower of Hanoi Puzzle

    EasyRecursionTagged at 7 companies
  4. 4

    Move All Zeroes to the End of an Array In-Place

    EasyArrayTagged at 7 companies
  5. 5

    Find the Transpose of a 2D Matrix

    EasyArrayTagged at 7 companies
  6. 6

    Reverse Log Viewer

    EasyTwo PointersTagged at 7 companies
  7. 7

    Captcha Obfuscation

    EasyTwo PointersTagged at 7 companies
  8. 8

    Remove Duplicates from Sorted Array

    EasyTwo PointersTagged at 7 companies
  9. 9

    Merge Sorted Array

    EasyTwo PointersTagged at 7 companies
  10. 10

    Search a 2D Matrix (Sorted Rows and Columns)

    MediumBinary SearchTagged at 7 companies
  11. 11

    Maximize Magnetic Force Between Two Balls

    MediumBinary SearchTagged at 7 companies
  12. 12

    Merge Overlapping Intervals in an Array

    MediumArrayTagged at 7 companies
  13. 13

    Financial Fraud Detection

    MediumArrayTagged at 7 companies
  14. 14

    Smart Home Motion Sensor Uptime

    MediumSliding WindowTagged at 7 companies
  15. 15

    Defragmentation Algorithm Storage

    MediumSliding WindowTagged at 7 companies
  16. 16

    String Compression Decoder

    MediumTwo PointersTagged at 7 companies
  17. 17

    Calculate Score in Baseball Game with Stack Operations

    EasyStack and QueueTagged at 6 companies
  18. 18

    Merge Two Sorted Linked Lists Iteratively

    EasyLinkedListTagged at 6 companies
  19. 19

    Find the N/k-th Node in a Linked List (Fractional Node)

    EasyLinkedListTagged at 6 companies
  20. 20

    Find the 'Center' of a Star Graph (Graph)

    EasyTreeTagged at 6 companies
  21. 21

    Convert a Roman Numeral String to an Integer

    EasyStringTagged at 6 companies
  22. 22

    Find the First Unique (Non-Repeating) Character in a String

    EasyStringTagged at 6 companies
  23. 23

    House Robber

    MediumDynamic ProgrammingTagged at 6 companies
  24. 24

    Validate Binary Tree Nodes

    MediumTreeTagged at 6 companies
  25. 25

    Flatten Binary Tree to Linked List

    MediumTreeTagged at 6 companies
  26. 26

    Unique Paths II

    MediumDPTagged at 6 companies
  27. 27

    Determine Minimum Time for All Oranges to Rot

    MediumStack and QueueTagged at 6 companies
  28. 28

    Reveal Cards In Increasing Order Using Queue Simulation

    MediumStack and QueueTagged at 6 companies
  29. 29

    Find Shortest Path in Binary Matrix Using BFS

    MediumStack and QueueTagged at 6 companies
  30. 30

    Design a Stack with Increment Operation Support

    MediumStack and QueueTagged at 6 companies
  31. 31

    Find the Minimum Cost Tree From Leaf Values

    MediumStack and QueueTagged at 6 companies
  32. 32

    Swap Every Two Adjacent Nodes Iteratively

    MediumLinkedListTagged at 6 companies
  33. 33

    Add One to a Number Represented by Linked List

    MediumLinkedListTagged at 6 companies
  34. 34

    Find the Length of the Loop in a Linked List

    MediumLinkedListTagged at 6 companies
  35. 35

    Delete a Node in a Linked List with O(1) Time Complexity

    MediumLinkedListTagged at 6 companies
  36. 36

    Segregate Even and Odd Nodes in a Linked List

    MediumLinkedListTagged at 6 companies
  37. 37

    Delete N Nodes After M Nodes of a Linked List

    MediumLinkedListTagged at 6 companies
  38. 38

    Find the Nth Node from the End (Recursive)

    MediumLinkedListTagged at 6 companies
  39. 39

    Find the Root of an N-ary Tree (Given All Nodes)

    MediumTreeTagged at 6 companies
  40. 40

    Find Minimum Height Trees (Graph Theory)

    MediumTreeTagged at 6 companies
  41. 41

    Find the Kth Largest Element in an Array (Heap Method)

    MediumTreeTagged at 6 companies
  42. 42

    Count All Nodes in a Complete Binary Tree (O(log n * log n))

    MediumTreeTagged at 6 companies
  43. 43

    Implement Insertion into a Binary Search Tree (BST)

    MediumTreeTagged at 6 companies
  44. 44

    Find the Number of Connected Components in a Graph

    MediumTreeTagged at 6 companies
  45. 45

    Reverse Words in a String (O(1) Space)

    MediumStringTagged at 6 companies
  46. 46

    Find the Longest Substring with At Most K Distinct Characters

    MediumStringTagged at 6 companies
  47. 47

    Find the Kth Smallest Pair Distance

    HardBinary SearchTagged at 6 companies
  48. 48

    Maximize Profit in Job Scheduling

    HardBinary SearchTagged at 6 companies
  49. 49

    Calculate Trapping Rain Water (Two Pointers)

    HardArrayTagged at 6 companies
  50. 50

    Photoshop Magic Wand Tool

    EasyGraphTagged at 5 companies
  51. 51

    Subsets

    MediumBacktrackingTagged at 5 companies
  52. 52

    Letter Combinations of a Phone Number

    MediumBacktrackingTagged at 5 companies
  53. 53

    Detect Cycle in Undirected Graph

    MediumGraphTagged at 5 companies
  54. 54

    Dijkstra’s Algorithm (Using Min Heap)

    MediumGraphTagged at 5 companies
  55. 55

    Shortest Path in Binary Maze

    MediumGraphTagged at 5 companies
  56. 56

    Uber Dispatch Routing Optimization

    MediumGraphTagged at 5 companies
  57. 57

    Zomato Delivery Radius Finder

    MediumHeapTagged at 5 companies
  58. 58

    Shortest Palindrome

    HardStringTagged at 5 companies
  59. 59

    Design and Implement an LFU (Least Frequently Used) Cache

    HardLinkedListTagged at 5 companies
  60. 60

    Merge Sort a Circular Linked List

    HardLinkedListTagged at 5 companies
  61. 61

    Best Time to Buy and Sell Stock III

    HardDPTagged at 4 companies
  62. 62

    Paint House III

    HardDPTagged at 4 companies

More company sheets