Coding-Ninjas-Competitive-Programming icon indicating copy to clipboard operation
Coding-Ninjas-Competitive-Programming copied to clipboard

Solutions to all the questions I solved during the Competitive programming course with Coding Ninjas.

Results 12 Coding-Ninjas-Competitive-Programming issues
Sort by recently updated
recently updated
newest added

we can ignore .exe files by updating the .gitignore file

Your code was not working for some new test cases I guess this the new fully functional solution please look into it and if you think it's working accept the...

a solution to this tricky problem from my side

In Review

I have updated this code because the previous answer was wrong and no test cases were passing. So I have updated the code and now all test cases are passing.

In Review

/* Given a random integer array A of size N. Find and print the pair of elements in the array which sum to 0. Array A can contain duplicate elements....

/* Its Gary's birthday today and he has ordered his favourite square cake consisting of '0's and '1's . But Gary wants the biggest piece of '1's and no '0's...

warning: control may reach end of non-void function

On submitted it at coding ninjas, the output format was different, so modified the output format a bit . Also, the number '1' is neither prime nor composite, but this...