Dell Interview Questions
Showing 8 questions
Count the number of substrings within a binary string that have an equal number of consecutive 0s and 1s. The 0s and 1s within the substring must also be grouped consecutively.
#1. Count Binary Substrings
Find two numbers in a given array that add up to a specific target value, and return their indices. Essentially, you need to efficiently locate the pair that satisfies the sum requirement.
#2. Two Sum
Given a list of words, group together all the anagrams. Anagrams are words that contain the same letters rearranged.
#3. Group Anagrams
Find the length of the longest substring within a given string that contains no repeating characters. The substring must be contiguous.
#4. Longest Substring Without Repeating Characters
Determine if a string containing parentheses is valid. A valid string has matching and properly nested opening and closing parentheses.
#5. Valid Parentheses
Find the starting index of the first occurrence of a given substring within a larger string. Return -1 if the substring is not found.
#6. Find the Index of the First Occurrence in a String
You are given k sorted lists. Combine all of their elements into a single sorted list and return it.
#7. Merge k Sorted Lists
Find the longest palindromic substring within a given string. A palindromic substring reads the same forwards and backward.
#8. Longest Palindromic Substring