Java code(Algorithm)
Alex wants to paint a picture but hates taking the brush off the canvas. In one stroke, Alex can only paint the same colored cells which are joined via some edge.
Given the painting, determine the minimum number of strokes to completely paint the picture.
Take for example, the canvas with height given by h = 3 and width given by w = 5 is to be painted with picture picture=["aabba", "aabba", "aaaca"], the diagram below shows the 4 strokes needed to paint the canvas.
hello,
warm greetings!
I am a Java developer working on Java technology since 7+ years having hands on windows and web development experience. I would like to help in your application development.
It would be better if you can share more details about it if you are interested. Please message me to discuss more about the requirements.
looking for your positive response.
Thanks
Namit
$30 USD in 1 day
4.9 (29 reviews)
4.3
4.3
2 freelancers are bidding on average $24 USD for this job
Hi
I have a good 6 years of experience working for various MNCs as a software developer and I am well versed in Java.
If you can provide the complete problem description (along with the diagram that the problem statement talks about) then I can get it done for you very quickly.