ADOBE Round 1 for CS I/II

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2021-07-31Added By Anonymous
Source: Link

Company: Adobe
Role: software engineer 1, software engineer 2
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

Round 1:

Intro about my working experience

DS ALGO:

1) Given an integer N, the task is to obtain M, starting from N using minimum number of operations. The operations that can be performed in one step are as follows:

  • Multiply the number by 2.
  • Subtract by 1.

Find the minimum number of operations to obtain M from N using the above 2 operations.

2) Valid parenthesis

  • ({)} — bad
  • ({}) — good
Comments