create account

RE: [Idea] Who would like a series on a Python programming challenges posted weekly? by modrzew

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @tech.ninja/who-would-like-a-series-on-a-python-programming-challenges-posted-weekly

· @modrzew ·
I'm sorry, but can you explain how that particular input (list of words you provided in your post) maps to output (`4`)?

If those were just the examples of the format in which you'll give your challenges, I think it'd be much better if you explained the challenge as clearly as possible, and gave working example.

Here, for example, *the number of "tee" in the word Steem* may mean "how many words containing *tee* there are in the input", or "how many words that mean *Steem* (i.e. with different case) that also contain *tee* there are in the input". In other word, it's ambiguous - or it's just me having issues with trying to understand it.
properties (22)
authormodrzew
permlinkre-techninja-who-would-like-a-series-on-a-python-programming-challenges-posted-weekly-20171119t134532451z
categorytechnology
json_metadata{"tags":["technology"],"app":"steemit/0.1"}
created2017-11-19 13:45:33
last_update2017-11-19 13:45:33
depth1
children1
last_payout2017-11-26 13:45:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length646
author_reputation512,745,973,730
root_title"[Idea] Who would like a series on a Python programming challenges posted weekly?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id20,878,060
net_rshares0
@tech.ninja · (edited)
If I were to expand on this challenge, I would be more specific, at least in the early challenges. That's one of the programmer's enemies. What does the person mean and what is the problem they're trying to solve? Often times when people ask programmers to make a certain program, they will only have a broad description of what they want. This is where software requirements come into play and you will have formal meetings with the clients. You will have to gather all the information required to make said app. 

The input could be a string, array, hashmap, or even trees. The visual representation does not mean anything other than being human readable. 

So what you asked was a great question that some programmer may ask. A good start :)

In this case, I mean how many times you see the word **tee** IN the main word **steem** given this input. The input is a set of words separated by a comma. You would parse out each word in the list and try to find a subword of **tee**. Keep doing this as you count the occurrences  until they are no more words to parse out. 

You will see its 4, but looking at the description I did say the word "steem" specifically  and I counted "Steeem" which isn't the word "steem" now is it? So, the correct answer is 3. But as the description is broad and doesn't mention anything about the spelling. I would think that 3 or 4 can be the correct answers. So confusing! 

So, in my challenges I will be very specfic in what the actual problem is. As well as correcting or clarify my challenge if needed. 

Thanks for asking. This is why I want to do some challenges, to make sure I'm concise and as well as teaching people with mistakes they find in my wording or logic. Everyone wins. :D
properties (22)
authortech.ninja
permlinkre-modrzew-re-techninja-who-would-like-a-series-on-a-python-programming-challenges-posted-weekly-20171120t072417815z
categorytechnology
json_metadata{"tags":["technology"],"app":"steemit/0.1"}
created2017-11-20 07:24:18
last_update2017-11-20 07:29:09
depth2
children0
last_payout2017-11-27 07:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,724
author_reputation368,635,708,040
root_title"[Idea] Who would like a series on a Python programming challenges posted weekly?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id20,952,883
net_rshares0