i am able to pass all the test except test case 2. Please let me know what can i change in my code to pass all the test cases,
CB numbers for test case 2
@rahul.aggarwal000005 hey could you provide me your code in coding blocks IDE, as you have multiple subbmission.
@rahul.aggarwal000005 hey based on your code with maximum points I am telling you corrections.
The CB number is not a prime number, it should not be the multiple of given number only.
If this resolves your doubt mark it as resolved.
@rahul.aggarwal000005 my reply is based on this code only, CB number is not a prime number.
If this resolves your doubt mark it as resolved.
still it is not passing test case 2
@rahul.aggarwal000005 instead of fixing it start and end, fix the length of CB number first find CB numbers of len 1, then of len 2 and so on.
When you fic position you might find a CB number that encloses 2 smaller CB numbers but they at later position,
If this resolves your doubt mark it as resolved.
i have not fixed the start and end . i have only fixed the length but still it is not passing test case 2. can you give me the example where my code will show wrong output
@rahul.aggarwal000005
Your code will fail for numbers 2,3,5
Their is small mistake, in the lengths
i=1;i<=n;i++
length can be from 1 to n
If this resolves your doubt mark it as resolved.
thank you so much for the help. i get it.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.