Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Guaranteed Job
0 like 0 dislike
82 views
Two killers, Dahmer and Dexter are standing on the circumference a circular forest.They are trying to kill each other but can only make moves turn by There are trees between them on the left and right arcs of the circle .in each turn, a person can either cut one of his adjacent trees or ifthe other person is standing right next to him, kill that person Lets say represents the initial number of trees in the clockwise arcand represents the initial number of trees in the counter-clockwisearc, from Dahmer to Dexter (x, y)is a suitable configuration for Dahmer, if he will be able to killDexter and come out alive, given Dahmer moves first. You are given two numbers A and B You need to find the count of all configurations (x, y) such thatr<= A.y<= B and ( . ) is a suitable configuration for DahmerSince the answer can be large, you need to print the answer modulo10 ^ 9 + 7
in Online Assessments by (120 points) | 82 views

Please log in or register to answer this question.