Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The noun is not the issue but rather the scope of uniqueness:

>Now, given two log files (log file from day 1 and log file from day 2) we want to generate a list of ‘loyal customers’ that meet the criteria of: (a) they came on both days, and (b) they visited at least two unique pages.

It appears to me that the requirement could be interpreted as either:

"(visit on day 1) AND (visit on day 2) AND (total unique pages count > 2)"

a clearer way to put it would be "visited at least two unique pages in total"

or "(visit at least two unique pages on day 1) AND (visit at least two unique pages on day 2)"

a clearer way to put it would be "visited at least two unique pages on each day"



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: