In First But Second


madhuradlakha
Top rated problems
  • 1. Array operations (Search, insert, delete)
  • 2. Array alternate printing
  • 3. Rotate Array
  • 4. Wave Array
  • 5. Find the row with maximum number of 1s

Given an array A[] of N positive integers which can contain integers from 1 to N where elements can be repeated or can be absent from the array. Your task is to count frequency of all elements from 1 to N.\r\n\r\nNote: Expected time complexity is O(n) with O(1) extra space.


shef5
Top used Languages C/C++
  • 1. JavaScript
  • 2. Python
  • 3. Java
  • 4. PHP
  • 5. C++