urname
BAN USER
- 8of 8 votes
AnswersI have been given 2 strings namely A and B and I have to find the no. of strings lying between A and B where the inbetween lying strings must be formed only from the characters of A.
- urname
Another restriction is that each letter has to be used exactly once.
For example :
A->abc
B->ddd
Ans=5
From string abc, the strings obtained are acb, bac, bca, cab, cba, all of them are larger than abc, but smaller than ddd. So the answer is 5.
Also, it may be the case that a given character in the string may repeat any number of times.ie- the below case is also included in the problem statement.
A->abacaba
B->ubuduba
Ans=64
How do I find the no. of such strings ?
link : https://codeforces.com/contest/895/problem/D| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersI have been given an array whose elements lie between [1,70] and the size of array [1,10^5].
- urname
I have to find the total number of subsets whose all elements multiply to give a perfect square number.
Since, count of subsets can be very large, I have to give the ans mod (10^9 + 7).
How should go on to solve this problem ?
One hint given to me is to utilise the range of value that every array element hold which is [1,70] and total no. of prime numbers between these [1,70] are 19.
link: https://codeforces.com/contest/895/problem/C| Report Duplicate | Flag | PURGE
RepAtiDavis, Analyst at 8x8
I am a skilled construction worker with 3+ years of experience erecting structures according to blueprints and safely utilizing power ...
Repmalloymirna65, Developer Advocate at 247quickbookshelp
I am Mirna Timekeeping clerks distribute and collect timesheets, timecards or work charts either as hard copies or electronically to ...
RepNoraLillian, Applications Developer at Coupondesh
Nora, working as a ghostwriter with a history in manuscript development, proofreading, and editing, I apply with enthusiasm for this ...
RepZoeParker, Java Experienced at Abs india pvt. ltd.
I am Zoe , a Security Analyst with a record of success in completing financial market research and conducting earnings estimates ...
Repkassacraven, Java Experienced at Brainware
Kassa , an Outgoing a Travel Consultant with over 3 years of experience in delivering professional travel and tourism-related services focusing ...
Repamieeriddler, Financial Software Developer at ABC TECH SUPPORT
I am Amiee , a Professional Insurance Agent providing valuable services to consumers in need of insurance coverage. As a part ...
RepMiraDavis, Computer Scientist at Accenture
I am School librarian and also teach students the fundamentals of using a library and its resources .I write and ...
RepMacHeist, Data Scientist at British Telecom
Mac, a Desktop Publishing Specialist at VitaGrey, where I provide document formatting and publishing support to a wide variety of ...
Repanayadonal67, Animator at ABC TECH SUPPORT
AnayaDonal and I am a City planners. I have completed all my studies from Chicago. It's been a long ...
RepBruceKeter, HTML Experienced at 247quickbookshelp
Bruce , a pediatrician studies psychoanalysis where I try to understand children's needs and family dynamics. To do more research ...
RepNirvedPerez, abc at 8x8
To make sure a thorough investigation is done if discrepancies occur. Execute the Brand Customer Service standards to meet or ...
RepShaneFord, Associate at ABC TECH SUPPORT
ShaneFord , Uniformed police officer working at Kash n' Karry here i Assists in the investigation of crimes and/or suspected ...
Reppaulajheineman, Consultant at Bank of America
Hello, I am from Las Vegas, NV.Completed a Diploma course in Advanced Technological Developments and Staff Management. I have ...
Repcrystalblibby, Analyst at Achieve Internet
By professional i am teacher. Successfully supervised and assisted students, grade artwork, encouraged creativity and new technique.Familiar with art ...
RepNiaNorna, Analyst at ADP
I am an established career journalist with 15 years of writing and copy editing experience in the newsroom. Seeking to ...
Replestermauldin, Assignment editor at Royal Gas
I am Lester Assignment editor . I am responsible for organizing the assignment desk to operate around the clock. I often ...
Repameliahill344, abc at Detail Oriented
Professionally licensed Architect with a Master’s degree in Architecture and more than 4 years experience designing commercial buildings, offices ...
Repjomajogya, Applications Developer at Autonomy Zantaz
I’m a teacher assistant who supports the teacher in planning and presenting lessons, and helps students learn . I specialize ...
RepCecilPonton, Java Developer at Boeing
Cecil , an enthusiastic professional Photographer with 2 years of experience with a true passion for capturing life’s moments through ...
RepAngieGibson, Jr. Software Engineer at Agilent Technologies
I am Angie , a Power Plant Operator with in-depth knowledge of all aspects of operation and maintenance and 3 years ...
RepPennyStringer, Music director at Poore Simon's
I am a Music director and writer and live in Newark USA . I spend most of my time writing essays ...
RepShaneFrazier, Analyst at Brocade
I am Shane , a professional with 7 years of experience in financial markets. Outperforms, manages client satisfaction for Vashikaran Specialist ...
RepWilliamWiltz, Call Girls in Chawri Bazar at Amdocs
Hi , I am William, a Medical technologist with extensive knowledge around sample examination and analyzing results. Selected from a pool ...
RepAileen Kate, HR Executive Trainee at Bankbazaar
Aileen , a game designer with 4+ years of experience in a creative yet deadline-driven environment. Eager to join The Rock ...
Reppedrospencerp, Blockchain Developer at 247quickbookshelp
My name is Pedro and I am a 28 years old Title abstractor . I research all documents and activities affecting ...
RepRenitaLoius, Digital marketing freshers at Amdocs
Renita , a marketing writer with a comprehensive background of achievements in providing marketing advice to clients, writing original articles on ...
RepBertMusi, Consultant at Accenture
I am a service technician working at Parade of Shoes . It's been almost 5 years since I have been ...
RepArnoldTate, Title searcher at Keeney's
I am a Title searcher with 8+ years of experience . In real estate business and law, a title search or ...
RepBhrisBrown, Animator at Achieve Internet
I teach the art of cooking, including food preparation, various cuisines, and techniques of cooking. I work at colleges and ...
RepSimonPister, Blockchain Developer at Absolute Softech Ltd
Simon , a food scientist , records the Tracking status of all existing ingredients during the review and updating process and communicates ...