Tuesday, 23 September 2014

Hackerrank Intro to Tutorial Challenges Solution

The Solution for hackerrank problem, Intro to Tutorial Challenges using C Program.
Passed Test cases: 3 out of 3

SOURCE CODE:

 #include<stdio.h>  
 int main(){  
   int num,size,array[100000],i;  
   scanf("%d",&num);  
   scanf("%d",&size);  
   for(i=0;i<size;i++){  
     scanf("%d",&array[i]);  
   }  
   for(i=0;i<size;i++){  
     if(num==array[i])  
       printf("%d",i);  
   }  
   return 0;  
 }  

1 comment:

  1. Tutorial challenges are not easy for everyone. If you have sharp mind then its easy for you to solve but when at the time when you have no essay writer australia and also not enough to solve that challenges for the others.

    ReplyDelete