Coding-Ninjas-Competitive-Programming
Coding-Ninjas-Competitive-Programming copied to clipboard
Solutions to all the questions I solved during the Competitive programming course with Coding Ninjas.
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 3dimensional dp problem
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.
/* 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
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...