want you to write me a simple spell checking engine. The query language is a very simple regular expression-like language, with one special character: . (the dot character), which means EXACTLY ONE character (it can be any character). So, for example, 'c.t' would match 'cat' as the dot matches any character. There may be any number of dot characters in the query (or none). Your spell checker will have to be optimized for speed, so you will have to write it in the required way. There would be a one-time setUp() function that does any pre-processing you require, and then there will be an isMatch() function that should run as fast as possible, utilizing that pre-processing. There are some examples below, feel free to ask for clarification. Word List: [cat, bat, rat, drat, dart, drab] Queries: cat -> true c.t -> true .at -> true ..t -> true d..t -> true dr.. -> true ... -> true .... -> true ..... -> false h.t -> false c. -> false */ // write a function // Struct setup(List<String> list_of_words) // Do whatever processing you want here // with reasonable efficiency. // Return whatever data structures you want. // This function will only run once // write a function // bool isMatch(Struct struct, String query) // Returns whether the query is a match in the // dictionary (True/False) // Should be optimized for speed
MISSING VALUE Interview Questions
6,571,160 interview questions shared by candidates
Do you think about a nursing career in the future?
Video interview question included: why network rail, why the rail industry, when have you solved a problem creatively and when have you made a professional network.
How many bottles of shampoo are produced in the world a year?
What happens when you have much subscribers to an event and an exception would raise in one of them?
Parler de moi
On a scale from one to ten, rate me as an interviewer.
Is your college GPA reflective of your potential?
Most of the questions they asked where all from the phone interview.
If we came to your house for dinner, what would you prepare for us?
Viewing 201 - 210 interview questions