Quantcast
Viewing all articles
Browse latest Browse all 39796

ALORA1 - Editorial

Problem Link : Link

Author : Shivansh Agarwal
Tester : Ritesh Gupta
Editorialist : Ritesh Gupta

Pre-Requisite : None

Problem : You are given an unsorted array of integers. You have to find that all the elements are distinct or not.

Explanation : There are many approaches to solve this question. You can use std:set to store the elements of the array. If the size of the set is not equal to the size of the given array then there exists some element which occurs more than once.

Time Complexity : O(nlogn)
Setter Solution : Link
Tester Solution : Link


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>