(maintained by Lakshmi Sarvani Videla, Former Assistant Professor, KLEF and now Computer Science Lecturer, SRR and CVR Government Degree College, Vijayawada
Pages
▼
Saturday, 11 July 2020
Pseudo code to find distinct elements in array in cpp
unordered_set<int> s;
for (int i=0; i<k; i++) { if (s.find(c[i])==s.end()) { s.insert(c[i]); printf("%d",c[i])
} }
custom Logo Design company
ReplyDelete