VISA OA pre-screen for New Grad (WA,CA) - USA
Anonymous User
148

question 1:

given a list of strings input ["Hello", "Even"]

return a list [] with the strings from input with these conditions.

  1. if the word from input is even append to the output list the word reversed
  2. if the word is odd append to the output list the word reversed

question 2.given a list of recipes ["flour", "sugar", "eggs"] and instructions = ["floursugar","random", "flour", "sugareggs"]
return a list of booleans ex[True, False, True, False] that examines the conditions of the recipes list. If from the instructions list we follow the pattern that words from recipes must follow the order recipes[0] + recipes[1], recipes[0], recipes[0] + recipes[1] + recipes[2] then in the output array place True for that indice. if it follows a different pattern such as recipes[1] or recipes[1] + recipes[2], or different word place a false.

question 3:
given a list of times [1,2,3,5,10]
Samples arrive at different times and must be processed by a molecular reactor.

The reactor processes 1 sample at a time, in order.

A cooling chamber can only hold up to 10 waiting samples.

If more than 10 are waiting, new arrivals are rejected.

Goal: Compute the total time required to process all accepted samples.

question 4:
graph problem

Comments (0)