Comments

You must log in or register to comment.

Showerthoughts_Mod t1_j1eof0c wrote

This is a friendly reminder to read our rules.

Remember, /r/Showerthoughts is for showerthoughts, not "thoughts had in the shower!"

(For an explanation of what a "showerthought" is, please read this page.)

Rule-breaking posts may result in bans.

1

internetcivilian t1_j1etwq1 wrote

To the CS students out there: Yes, you must know how to solve this problem to prepare for a job interview.

75

zero41120 t1_j1foka8 wrote

Not necessarily. If you have a bidet, then you can pretty confidently tell you only need N wipe

41

Pechugo83 t1_j1g1t51 wrote

Idc if I needed N wipes, I'm using 0 wipes. My underwear can deal with it. It's not my problem anymore after I pull my pants up

15

takaminenine t1_j1go30z wrote

As someone who has seen theory fall apart in practical application, I recommend N+2. That N+1 could be a false negative 🙄

24

batman42a t1_j1i8n62 wrote

Time for a proof by induction: Base case: if you use only one wipe and it looks clean, you won't trust it and you'll use a second one. Now assume that you need n+1 wipes to realize you needed n wipes.

If you needed n+1 wipes, by the inductive hypothesis you will take (n+1)+1=n+2 wipes which proves the hypothesis

Q.E.D.

2

BisterMee t1_j1i9rqw wrote

The question:

When talking about how many wipes were needed, do you refer to n or n+1?

2