PHP Javascript Expert Mini Project
$30-250 USD
Paid on delivery
Problem 1:
In some English words, there is a letter that appears more than once. Search through a sample of text to find the word with a letter that is repeated more times than any other letter is repeated in any other word. When there is a tie between two words, choose the word that appeared first in the sample.
The text sample will contain only english letters (a-z and A-Z) — separated by any type and any amount of whitespace — and punctuation marks. A letter is considered to be the same letter regardless of whether it appears in uppercase or lowercase. Any punctuation marks should be ignored. So, in particular, contractions, possessives, and hyphenated words count as a single word.
Write either a PHP, Ruby, or Python program, to be executed from the CLI. The program should accept a file path as an argument and return the original text of the winning word — meaning the same capitalization and punctuation marks. So for example, “Blue-collar worker” should return “Blue-collar” and not “blue-collar”, “Bluecollar”, “bluecollar”, or “Blue collar”. The program should be able to handle any character for input, and merely ignore any character that is not a letter. Lastly, the program should not return exceptions or warnings.
Example:
Input: “O Romeo, Romeo, wherefore art thou Romeo?”
Output: “wherefore”
Explanation: The letter “e” is repeated three times in the word “wherefore”—and this is more than any other letter is repeated in any other word!
Example:
Input: “Some people feel the rain, while others just get wet.”
Output: “people”
Explanation: Both “people” and “feel” have a letter that is repeated twice within the word. This is a tie—and the first word wins!
Problem 2:
Please review the following JS code sample and provide comments on how to modify to make it better: [login to view URL]
Project ID: #16230914
About the project
Awarded to:
I can do your fixes in PHP and javascript. please contact with complete details, thanks. Relevant Skills and Experience PHP, Javascript
15 freelancers are bidding on average $138 for this job
Honorable Seniors. How are you? I have experience 7+ years in developing .NET, Laravel, node.js, angular.js, react.js and Python Frameworks.. I will work for you all my best. Thank you in advance for your time and co More
hello You want to do as follow. In some English words, there is a letter that appears more than once. Search through a sample of text to find the word with a letter that is repeated more times than any other letter More
I have a lot of experience in php development,. If you are interested you can call me. See you soon, And thanks for reading.
wow nice example so where is this project used i am just curious any ways i am intrested in making this project for you i have 8 years of experience cheers
Hi, How are you? I want to work your project. Please hire me. If you trust me, I 'll do my best for you. Thank you.