Chamging . into * in 2d array | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Chamging . into * in 2d array

I have a map in which X indicates a wall, . indicates path, and G is a point where we need to get...i need to change all . into * if they are directly from G to outside of that array(map)

17th Jan 2021, 6:37 PM
Kristian Drežnjak
3 Answers
+ 2
Kristian Drežnjak , not quite clear what your problem is. if the issue is coding related, please show us your attempt. put the code in playground and link it here. thanks!
17th Jan 2021, 7:23 PM
Lothar
Lothar - avatar
+ 2
i didn't get your question
18th Jan 2021, 11:40 AM
Anon Fox
Anon Fox - avatar
0
Lothar pls check DM
17th Jan 2021, 7:36 PM
Kristian Drežnjak