The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
There are often situation at the college when people have to prove themselves to the teacher infront of the whole class.
Once a boy named pankaj was the center of attack.
The teacher gave him a string S consisting of alphabets ( a-z ) and dots ( . ) and asked him to enumerate the strings by filling the dots with alphabets from a-z, such that
Â
Attendance for 2 classes are on stake for him. Help him save his attendance by answering the question.
As the answer might be large, output the answer modulus 10^9 + 7.
Input description
Â
Output description
Â
Â
Input 2 a. 1 .. 2 Output 2 124
Â
Example case 1. The only way to fill the second place is with 'a' or 'b'
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll