Complete-Preparation

πŸŽ‰ One-stop destination for all your technical interview Preparation πŸŽ‰

View the Project on GitHub

Leetcode Problem 1800-1899

1832. Check if the Sentence Is Pangram 🌟

O(N) Time O(N) Space Solution


1854. Maximum Population Year 🌟

O(N) Time and O(N) Space


1886. Determine Whether Matrix Can Be Obtained By Rotation 🌟

O(N^2) Time solution

- 0 deg rotation : i, j will point to i, j
- 90 deg rotation : i, j will point to j, n - i - 1
- 180 deg rotation : i, j will point to n - i - 1, n - j - 1
- 270 deg rotation : i, j will point to n - j - 1, i
c[0] -> 0 deg rotation,
c[1] -> 90 deg,
c[2] -> 180 deg,
c[3] -> 270 deg