Received the coding link from CodeSignal, where there were 4 questions (2 easy, 1 easy-medium, 1 medium (too lengthy with time limit constraints) to be completed in 70 min.
Received 508/600 score.
After a week with no feedback got a rejection mail.
You are given a binary array state consisting of integers 0 and 1. You are also given operations - an array of strings, each representing an operation of one of two types: "L" - find the smallest index i, for which state[i] = 0, and set state[i] = 1. If there is no such index, do nothing. "C{index}" - set state[index] = 0. This operation does not depend on the previous value of state[index]. It is guaranteed that index is a valid 0-based index of state (ie: index < state.length). Given state and operations, your task is to return the binary string of state array after all the operations have been applied. Example For state = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] and operations = ["L", "L", "C0", "L", "C3"], the output should be solution(state, operations) = "1100000000".
Expand to see the example video. Note: If you are not able to see the video, use this link to access it. Initially the state is [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]. On the 1st operation "L", the smallest index with state[i] = 0 is i = 0. After this operation, the state is [1, 0, 0, 0, 0, 0, 0, 0, 0, 0]. On the 2nd operation "L", the smallest index with state[i] = 0 is i = 1, as state[0] = 1. After this operation, the state is [1, 1, 0, 0, 0, 0, 0, 0, 0, 0]. On the 3rd operation "C0", we set state[0] = 0. After this operation, the state is [0, 1, 0, 0, 0, 0, 0, 0, 0, 0]. On the 4th operation "L", the smallest index with state[i] = 0 is i = 0. After this operation, the state is [1, 1, 0, 0, 0, 0, 0, 0, 0, 0]. On the 5th operation "C3", we set state[3] = 0.
After this operation, the state is [1, 1, 0, 0, 0, 0, 0, 0, 0, 0]. All the operations are done so return "1100000000" as the result. For state = [1, 0] and operations = ["L", "L", "C1"], the output should be solution(state, operations) = "10". Expand to see the example video. Note: If you are not able to see the video, use this link to access it. Initially the state is [1, 0]. On the 1st operation "L", the smallest index with state[i] = 0 is i = 1. After this operation, the state is [1, 1]. On the 2nd operation "L", the operation should be ignored, as there is no index with state[i] = 0. After this operation, the state is [1, 1]. On the 3rd operation "C1", we set state[1] = 0. After this operation, the state is [1, 0].
All the operations are done so return "10" as the result.
The following metrics were computed from 1 interview experience for the PayPay Senior Software Engineering Manager role in India.
PayPay's interview process for their Senior Software Engineering Manager roles in India is extremely selective, failing the vast majority of engineers.
Candidates reported having very negative feelings for PayPay's Senior Software Engineering Manager interview process in India.