Hackerrank's Problem Solving solutions( Sequence Equation, Jumping on the Clouds: Revisited, Find Digits ) :
Problem 34: Sequence Equation Solution: (in c++) ( please guys before moving to the solution try it yourself at least 3-4 times , if you really wanna become a good coder) #include< bits/stdc++.h > using namespace std ; int main () { int n , k ; cin >> n ; vector < int > v ( n + 1 ); for ( int i = 1 ; i <= n ; i ++) { cin >> k ; v [ k ]= i ; } for ( int i = 1 ; i <= n ; i ++) { cout << v [ v [ i ]]<< endl ; } } This code is simple. There's no need for any explanation. Problem 35: Jumping on the Clouds: Revisited Solution: (in c++) ( please guys before moving to the solution try it yourself at least 3-4 times , if you really wanna become a good coder) #include< bits/stdc++.h > using namespace std ; int main () { int n , k , i , ct = 100 ; cin >> n >> k ; vector < int > v ( n ); for ( i = 0 ; i < n ; i ++) {