Hey Ninjas!
This is a post to ask doubts and share your logic for solving questions from Beginner Contest 48! 😄
You can also view the rankings for the contest here (link).
If you face any issues during the contest, do let us know by replying below. ✌️
How was your experience in the contest or got any feedback? Let us know here (link)
Who Can Participate:
Coding Ninjas Studio is organizing this coding contest for beginner coders and is open to programmers from all across the globe. Everyone from freshers to professionals can participate.
About The Contest:
Coding Ninjas Studio contest is our weekly coding competition. In this contest, the coders compete while also improving their overall algorithmic knowledge. The coding contest helps students and professionals tackle a problem by reading the concepts one doesn’t know, and also gain practical experience by coding the solution to the problem, thus improving their skills significantly. This coding competition packs the excitement of programming with the fun of learning into one compelling challenge. Don't forget to try out a sample problem if you are new to Coding Ninjas Studio.
Duration Of The Programming Contest: 1.5 hours(90 mins)
Rewards - Coding Ninjas Studio EXP
My first problem answer compiled and run in IntelliJ accurately giving output for every input. But i don't know why the contest48 compiler gave error.
Here below my code :
public static int theSuperMonsterHunt(int n, int d, int []a) { // Write Your Code Here. int ans=-1; for(int i=0;i<n;i++){ if(isHunt(d,a[i])){ if(ans<a[i]){ ans=a[i]; } } } return ans; } public static boolean isHunt(int d,int num){ while(num>0){ int r=num%10; if(r==d){ return false; } num=num/10; } return true; }
I also faced the same problem so I wrote code in C++ and passed all test cases at the end of the contest
why don't we get solutions after contest