Google onsite L4
Anonymous User
3313
  1. You need to design function which will resolve the given string by replacing the variables with their values. The variable will be enclosed in specific delimiter.
    For eg b -> #a#src
    a -> data#c#
    c -> base

If input is hello#b# output should be -> hellodatabasesrc.
The variable name wont contain delimiter
similar to:
https://leetcode.com/discuss/interview-experience/1670275/imp-facebook-e45-london

  1. Max possible transactions - you are given an array which has transaction amounts.Along with a initial total 'T' . if tx amount < 0 , you are making deposit, if tx amount is positive you are withdrawing.
    Once you reach a stage where you cant withdraw more you have to stop. Find max number of tx which can be done by you.
    eg arr = [-2 -3 4 1 132 ] T =0
    output - 4

arr = [ -2 5 1 3 2 -3 -1 4 1 ] T = 5
output - 5

Comments (22)