Write the actual code to parse a regular expression including "*", which stands for 0 or more characters, "+", which stands for 1 or more characters, and ".", which stands for 1 exact character.
Software Interview Questions
551,107 software interview questions shared by candidates
Given an array [1, 2, 3, 4, 3, 5] and number x, rotate the array such that all occurrences of x are shifted at the end. For example, x = 3, then output should be [1, 2, 4, 5, 3, 3]
Reversal of String Difference between GET and POST REST API
Implement a stack using a Queue
I had a difficult question about a cuboid composed of smaller cubes. How many cubes are there where exactly two faces of the cube are exposed?
How would you count the number of words in a string consisting of uneven number of spaces between words( not dictionary words)? With and without library functions.
ii) In a file or one million words find a pattern of words.
count the number of times a word has occurred in a given string
You are given 1000 containers of water with exactly one container containing poison. You can use pigs to test which container contains poison. The conditions are that: A pig drinking the poisoned water woudl die exactly after 1 hour and that a pig could be used for sampling multiple containers. Assume that the pig takes 0 time to drink water from any number of containers. What is the minimum number of pigs would you use to identify the poisoned container within 1 hour.
Print all permutations of a given string.
Viewing 1571 - 1580 interview questions