Hey there is a mistake in the algo of this question

It tried on their code provided in the PDF…and it fails on this test case…

±++++++++
±++++++++
±++++++++
±++++++++
±++++++++
±++++++++
++++++++++
++++++++++
++++++++++
++++++++++
DEN;BEN
And obviously it will fail…on seeing their algo they haven’t covered the case where length of word is smaller then the total empty space…because 2 words combined can fill it…but single cannot…so there will be a small change in their algo…please notify them about it…and hence the TEST CASES on hackerrank are also weak for this question…because their code passed all of those test cases…
https://ide.geeksforgeeks.org/CJtl2huipr

On this link you can see thier code…and the test case…that the output is none…but in actual these words can be fit in the space…

if it is mention in the question that you can place two words in single horizontal or vertical column
then you are right

but generally in crossword puzzles you have to fill only single word in empty space

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course

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.