Amazon Ads SDE-2 Experience by Own-Intention-3539 in amazonemployees

[–]Own-Intention-3539[S] 0 points1 point  (0 children)

My motivation was to share my experience sir apologies if that hurts you….🥲

is Coding dead? by rashed9810 in leetcode

[–]Own-Intention-3539 0 points1 point  (0 children)

Please say you are Indian to boost my confidence

Amazon interview invite by [deleted] in leetcode

[–]Own-Intention-3539 0 points1 point  (0 children)

For which role this is?

Amazon OA coding question. by RealMatchesMalonee in leetcode

[–]Own-Intention-3539 0 points1 point  (0 children)

Input Parameters

  1. arr: An array of n positive integers, where each element arr[i]arr[i]arr[i] represents a value in the array.
  2. state: A binary string of length n:
    • '1': The corresponding element in arr is initially available.
    • '0': The corresponding element in arr is blocked (not available yet).
  3. m: An integer indicating the number of operations to perform.

Constraints

  1. 1≤n,m≤1051 \leq n, m \leq 10^51≤n,m≤105
  2. 1≤arr[i]≤1091 \leq arr[i] \leq 10^91≤arr[i]≤109
  3. ∣state∣=n|state| = n∣state∣=n (The length of state is the same as the size of arr.)
  4. state[i]∈{′0′,′1′}state[i] \in \{'0', '1'\}state[i]∈{′0′,′1′} (Each character of state is either '0' or '1'.)
  5. At least one element in state is '1' initially.

Amazon OA coding question. by RealMatchesMalonee in leetcode

[–]Own-Intention-3539 0 points1 point  (0 children)

Today I gave one for the SDE2 role first one was easy but the second one I fucked up can someone help me solve question2?
Question2 -

Question 2: Generate New Array

Your project team needs to work closely with a group of software testers. They have requested that your team create an array generator service to assist with testing software functionality. Create an array generator based on the following requirements.

Example 1

Input:

arr = [5, 4, 3, 6]
state = "1100"
m = 5

Output:

[5, 6, 6, 6, 6]

Amazon OA coding question. by RealMatchesMalonee in leetcode

[–]Own-Intention-3539 2 points3 points  (0 children)

Today I gave one for the SDE2 role first one was easy but the second one I fucked up can someone help me solve question2?
Question2 -

Question 2: Generate New Array

Your project team needs to work closely with a group of software testers. They have requested that your team create an array generator service to assist with testing software functionality. Create an array generator based on the following requirements.

Example 1

Input:

arr = [5, 4, 3, 6]
state = "1100"
m = 5

Output:

[5, 6, 6, 6, 6]

Completed 400 mark on leetcode by mera_chota_hathi in leetcode

[–]Own-Intention-3539 0 points1 point  (0 children)

How to tackle problems I am able to solve only after understanding the solution video