Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Value equal to index value
vector<int> valueEqualToIndex(int arr[], int n) { // code here vector<int>v; for(int i=0;i<n;i++) { if(arr[i]==i+1) { v.push_back(arr[i]); } } return v; }
run
|
edit
|
history
|
help
0
sheetal
string-Orderly words
Articulation Point
HCF
replace-30-Seconds-of-C++
better o/p of factor problem
HashFold
3
bc
First and last Occurence of an Element