Crossword Puzzle
easy
1. You are given a 10*10 2-D array(arr) containing only '+' and '-' characters, which represents a crossword puzzle. 2. You are also given n number of words which need to be filled into the crossword. 3. Cells containing '-' are to be filled with the given words. Note -> Check out the question video and write the recursive code as it is intended without changing signature. The judge can't force you but intends you to teach a concept.
Constraints
1 <= n <= 10
Format
Input
10 * 10 grid of characters containing only '+' and '-' A number n str1 str2 ...n strings
Output
Check the sample output and question video
Example
Sample Input
+-++++++++
+-++++++++
+-++++++++
+-----++++
+-+++-++++
+-+++-++++
+++++-++++
++------++
+++++-++++
+++++-++++
4
LONDON
DELHI
ICELAND
ANKARA
Sample Output
+L++++++++
+O++++++++
+N++++++++
+DELHI++++
+O+++C++++
+N+++E++++
+++++L++++
++ANKARA++
+++++N++++
+++++D++++
Question Video