Question: 2 . Minimize enemies to kill [ Hard ] Given a 2 D grid of characters with values ' 0 ' , ' 1 '

2. Minimize enemies to kill [Hard]
Given a 2D grid of characters with values '0','1','X'. and two special characters A and B.
Find minimum number of enemies to kill such that we can get both special characters and get out of the Grid.
3.0 means there is no wall.
4.1 means wall or blocked path.
5. X represents Enemies **(once killed can be converted to 0)**
Example 1:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!