PHP Javascript Expert Mini Project

Completed Posted 6 years ago Paid on delivery
Completed 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]

HTML JavaScript PHP

Project ID: #16230914

About the project

15 proposals Remote project Active 6 years ago

Awarded to:

jagankolkata

I can do your fixes in PHP and javascript. please contact with complete details, thanks. Relevant Skills and Experience PHP, Javascript

$100 USD in 1 day
(60 Reviews)
5.6

15 freelancers are bidding on average $138 for this job

mondersky

I've seen each one of the problems and I can solve them .

$150 USD in 3 days
(217 Reviews)
7.1
Gaosong2017

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

$250 USD in 3 days
(72 Reviews)
6.7
VangHaleena17

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

$155 USD in 3 days
(40 Reviews)
5.8
sblancovilchez

I have a lot of experience in php development,. If you are interested you can call me. See you soon, And thanks for reading.

$122 USD in 1 day
(14 Reviews)
5.6
beastofpray007

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

$155 USD in 3 days
(13 Reviews)
5.3
abhilashrana01

A proposal has not yet been provided

$30 USD in 3 days
(26 Reviews)
4.3
mikhailkozalski

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.

$30 USD in 3 days
(3 Reviews)
2.8
balaramtupili

A proposal has not yet been provided

$155 USD in 7 days
(0 Reviews)
0.0