Optmyzr SDE Intern OA Round - 1

optmyzr logo
optmyzr
· SDE Intern
February 24, 2026 · 1 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).
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!