Posts

Electronics Shop | Hackerrank Solution in C++

Image
Electronics Shop | Hackerrank Solution It is an hackerrank problem you can find it by clicking  her e.    Below given solution is prepared by one of the coder of our.                                                                            Soultion in C++ #include< iostream > using   namespace  std; int  main(){      int  s,n,m,a,cost = -1;      int keyboard[ 1001 ],usb[ 1001 ];     cin >> s >> n >> m;      for ( int  i =  0 ; i < n; i++)cin >> keyboard[i];      for ( int  i...

Utopian Tree | Hackerrank Solution in C++

Image
Utopian Tree | Hackerrank Solution                                                        It is an hackerrank problem you can find it by clicking  her e.                                              Below given solution is prepared by one of the coder of our.                                                                            Soulti...

Apple and Orange | Hackerrank Solution in C++

Image
Apple and Orange | Hackerrank Solution                                                                    It is an hackerrank problem you can find it by clicking  her e.                                                          Below given solution is prepared by one of the coder of our.                                                                      ...

Counting Valleys | Hackerrank Solution in C++

Image
Counting Valleys | Hackerrank Solution              It is an hackerrank problem you can find it by clicking  her e. Below given solution is prepared by one of the coder of our.                                                                            Soultion in C++ #include< iostream > using   namespace  std; int  main() {      int  n,min= 1000 ;     cin>>n;      int  *arr =  new   int  [n];      for ( int  i= 0 ;i<n;i++)     {         cin>>arr[i]; ...

Minimum Distances | Hackerrank Solutions in C++

Image
Minimum Distances | Hackerrank Solution                It is an hackerrank problem you can find it by clicking  her e. Below given solution is prepared by one of the coder of our.                                                                            Soultion in C++ #include< iostream > using   namespace  std; int  main() {      int  n,min= 1000 ;     cin>>n;      int  *arr =  new   int  [n];      for ( int  i= 0 ;i<n;i++)     {         cin>>arr[i]; ...

Maximum Draws | Hackerrank Solution in C++

Image
Maximum Draws | Hackerrank Solution It is an hackerrank problem you can find it by clicking  here. Below given solution is prepared by one of the coder of our.                                                                            Soultion in C++ #include   < bits/stdc++.h > using   namespace  std; int  main() {      int  n;     cin>>n;      for ( int  i= 0 ;i<n;i++)     {          int  a;         cin>>a;         cout<<( 2 *(a+ 1 ))-( 1 +a)<<end...

Find the Point | hackerrank Solution in C++

Image
        Find the Point | Hackerrank Solution It is an hackerrank problem you can find it by clicking  here. Below given solution is prepared by one of the coder of our.                             Soultion in C++ #include< iostream > using   namespace  std; int  main() {      int  T;     cin >> T;      for ( int  t =  0 ; t < T; t++){          int  a,b,c,d;         cin>>a>>b>>c>>d;         cout<<( 2 *c)-a<< " " <<( 2 *d)-b<<endl;     }      return   0 ; } Hope your doubt regarding this problem is c...