8 kyu

Who is going to pay for the wall?

7,360 of 15,683mamafrantz

Description:

Don Drumphet lives in a nice neighborhood, but one of his neighbors has started to let his house go. Don Drumphet wants to build a wall between his house and his neighbor’s, and is trying to get the neighborhood association to pay for it. He begins to solicit his neighbors to petition to get the association to build the wall. Unfortunately for Don Drumphet, he cannot read very well, has a very limited attention span, and can only remember two letters from each of his neighbors’ names. As he collects signatures, he insists that his neighbors keep truncating their names until two letters remain, and he can finally read them.

Your code will show Full name of the neighbor and the truncated version of the name as an array. If the number of the characters in name is less than or equal to two, it will return an array containing only the name as is.

Fundamentals
Strings

Stats:

CreatedMar 8, 2017
PublishedMar 15, 2017
Warriors Trained22781
Total Skips729
Total Code Submissions41137
Total Times Completed15683
Ruby Completions694
JavaScript Completions7640
Python Completions7360
Crystal Completions29
Haskell Completions277
Scala Completions20
Total Stars159
% of votes with a positive feedback rating89% of 2190
Total "Very Satisfied" Votes1795
Total "Somewhat Satisfied" Votes308
Total "Not Satisfied" Votes87
Total Rank Assessments74
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • mamafrantz Avatar
  • GiacomoSorbi Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • Blind4Basics Avatar
  • DasBrain Avatar
  • hobovsky Avatar
  • KayleighWasTaken Avatar
Ad