- Q Elections over, mps' elected, the auction house set and the horse-trading is on. All the mp's are seated in a circle. Each belongs to either the H front or the T front of the regional faction of the secular group of the leftist liberal democratic anti-communalist pro-poor progressive party of India. In the centre of the circle is THE ONE of the current polity Akal Bechari Bhaggayi (ABB). His aim is to convert all the mp's to either H or T group. But mps' being mps', having had years of experience are not so easy. They always go in pairs (so they can use each other as excuse later). In each step ABB can ask any 2 adjacent mp's to toggle their loyalty. Time however is of the essence. Everyone wants a piece of the action and if ABB does not convert fast he will be out of centre stage. This is where you come into the picture. You being the brilliant students from IITB can surely use your skills to help him out. Help ABB figure out the minimum number of steps required to achieve his aim. You will be given a string consisting of H's and T's as input on a single line. The size of the input is bounded above by 1600. Consider the input string to be the Circle listed out clockwise from some point. You have to output the number of steps it will take ABB to convert all mp's to one type. The number is to be printed on a line by itself. No leading or trailing data. If it is not possible to do the conversion then output -1. Sample Input: HTTH Sample Output: 1
- Q What is an INODE
- Q The month of the Gregorian calendar which is named after Jupiter’s wife is:
- Q The Dynatac made in the1970's was the first of its kind. What is this product which became extremely visible in India only in the mid 90's?
- Q Which organisation is the fund manager of the newly launched BHARAT-22 Exchange Traded Fund (ETF)?
- Q He failed ____ his best efforts.
- Q In which year ONICRA credit rating agency is
- Q What is methaprogramming?
- Q Nucleotide have same atomic number are called:
- Q Should every piece of literature have a moral to it?
- Q Mal de Mer is the French term for which ailment?
Question
AB + CD -> AD + BE Is this a legitimate example of an exchange reaction? Why or why not?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
Answers
It is not. An exchange reaction might be AB + CD -> AC + BD or AB + CD -> AD + BC . In all chemical reactions, including exchange reactions, the components of the reactants are identical to the components of the products. A component present among the reactants cannot disappear, nor can a component not present in the reactants suddenly appear in the products.
Your Comment
- 0
- 0
- New Answer
- Contributors: *,
More Medicine Questions..
What is Lacrimal Fossa
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
Describe the general characteristics of herpesvirus virions, genomes and the diseases caused by this family of viruses
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
Approximately 3 weeks after her last menstrual period, a sexually active woman experiences a brief episode of abdominopelvic cramping and minor bleeding. What might be the explanation?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
What is functional group
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
what is the diffusion
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
Explain pituitary gland
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
What is the brand name for buprenorphine with naloxone?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
explain smooth muscle
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
What is intramembranous ossification
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
What is fasciculation
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
What is Weber test
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
what is the polypeptide
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
Explain intertrochanteric crest
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
What is anatomy
- 0
- 0 |
- |
- Post Answer |
- Answers ( 2 )
- Tags: Medicine,
Explain Neuron
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
what is the centrosome
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
Intrafusal fibers are encapsulated and make up muscle spindles that send their signal via what nerve?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
what is the Primary action of EHB
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,
What is inferior cerebellar peduncle
- 0
- 0 |
- |
- Post Answer |
- Answers ( 3 )
- Tags: Medicine,
What structures are pierced when doing an LP?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Medicine,