Help the Community

Share your interview experience to help others prepare!

Get the App

Practice on the go! Download our Android app to read experiences anywhere.

optmyzr logo

Optmyzr

More Experiences

Optmyzr SDE Intern OA Round - 1

optmyzr logo
optmyzr
· SDE Intern
February 24, 2026 · 29 reads

Summary

I recently appeared for the Optmyzr SDE Intern Online Assessment (Round 1). I encountered an interesting problem based on 2D Matrix transformations and have shared its description and my approach.

Full Experience

I recently appeared for the Optmyzr SDE Intern Online Assessment (Round 1). One of the interesting problems was based on 2D Matrix transformations. Sharing the problem statement and my approach to help the community!

Interview Questions (1)

1.

Matrix Transformations (Rotate & Flip)

Data Structures & Algorithms·Medium

📝 Problem Description

You are given an $N \times N$ matrix (2D vector). You need to perform a series of operations in a specific order to transform the matrix.

Operations:

  1. Rotation: Rotate the matrix clockwise by a given angle $\theta \in \{90^\circ, 180^\circ, 270^\circ\}$.
  2. Vertical Flip: If vertical_flip == 1, flip the matrix vertically (up-to-down).
  3. Horizontal Flip: If horizontal_flip == 1, flip the matrix horizontally (left-to-right).

Input Format:

  • A 2D vector matrix.
  • An integer angle (90, 180, or 270).
  • An integer v_flip (0 or 1).
  • An integer h_flip (0 or 1).

📣 Found this helpful? Please share it with friends who are preparing for interviews!

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!