Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 222 Bytes

File metadata and controls

7 lines (7 loc) · 222 Bytes
  • Type: Array
  • Approach:
    1. Use a map to store value and index in the second array.
  • Complexity:
    • Time: O(n)
    • Space: O(n)