We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I solved this correctly in python-2 and got 9.88 as my score. I downloaded testcase1 and its output, and checked my result against the output, I discovered it only identified one date in paragraph 6 see pasted below. My code indentified 2 distinct dates in paragraph six i.e. July 2, 1776 and July 4.
paragraph-6:
"During the American Revolution, the legal separation of the Thirteen Colonies from Great Britain occurred on July 2, 1776, when the Second Continental Congress voted to approve a resolution of independence that had been proposed in June by Richard Henry Lee of Virginia declaring the United States independent from Great Britain.[4][5] After voting for independence, Congress turned its attention to the Declaration of Independence, a statement explaining this decision, which had been prepared by a Committee of Five, with Thomas Jefferson as its principal author. Congress debated and revised the wording of the Declaration, finally approving it on July 4."
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
A Text-Processing Warmup
You are viewing a single comment's thread. Return to all comments →
I solved this correctly in python-2 and got 9.88 as my score. I downloaded testcase1 and its output, and checked my result against the output, I discovered it only identified one date in paragraph 6 see pasted below. My code indentified 2 distinct dates in paragraph six i.e. July 2, 1776 and July 4.
paragraph-6: "During the American Revolution, the legal separation of the Thirteen Colonies from Great Britain occurred on July 2, 1776, when the Second Continental Congress voted to approve a resolution of independence that had been proposed in June by Richard Henry Lee of Virginia declaring the United States independent from Great Britain.[4][5] After voting for independence, Congress turned its attention to the Declaration of Independence, a statement explaining this decision, which had been prepared by a Committee of Five, with Thomas Jefferson as its principal author. Congress debated and revised the wording of the Declaration, finally approving it on July 4."