Pure Storage Interview Questions
Showing 7 questions
Determine if four given points in a 2D plane form a valid square. A valid square has four equal sides and four right angles.
#1. Valid Square
Find the number of palindromic substrings within a given string. Consider each single character and repeated characters as a substring.
#2. Palindromic Substrings
Implement a Skiplist data structure that supports efficient search, insertion, and deletion of elements. A Skiplist is a probabilistic data structure with multiple levels of linked lists.
#3. Design Skiplist
Determine the maximum number of times a given word consecutively repeats as a substring within a larger sequence. Find the largest integer k such that word * k is a substring of sequence.
#4. Maximum Repeating Substring
Find the longest palindromic substring within a given string. A palindromic substring reads the same forwards and backward.
#5. Longest Palindromic Substring
Design a data structure that supports insertion, deletion, and random element retrieval, all in constant time on average. You'll need to handle edge cases carefully to achieve O(1) complexity.
#6. Insert Delete GetRandom O(1)
Write a program that prints numbers from 1 to n, replacing multiples of 3 with "Fizz", multiples of 5 with "Buzz", and multiples of both with "FizzBuzz".
#7. Fizz Buzz