And when going down, do you use negative numbers?
So many questions left unanswered. I feel you aren't a true stair counting nerd afterall.
:-)
And when going down, do you use negative numbers?
So many questions left unanswered. I feel you aren't a true stair counting nerd afterall.
:-)
So you're free to use either top-stepian or bottom-stepian notation when counting stairs and you'll get to the same answer either way. So it's just an implementation detail that's left undefined in the spec.
Half open zero based ranges are quite satisfying :-)
So, if I am walking; & approach a flight of stairs going upwards, before until my both feet are on same plane, stairs have not started & I can't start counting. As soon as I step "up", my feet is on different (higher in this case going upwards), I count it as first stair. Same on the other side. I continue counting till I am stepping up. As soon as I land my both feets on same level; any foot-step after that doesn't get counted in step-count.
Other way to count steps are imagine if we look ar stairs' drawing or cross-section view from side; i.e. a right-angled zig-zag line going up. On both ends, ground & landing lines are also there i.e. the drawing has always a horizontal line on upper & lower side representing floor & landing. This line is from bottom-left; going upwards towards top-right; the drawing's triangular section of bottom-right is, assume, filled in with concrete/anything; & a person walks on left-top section.
Any 90 degree outward bend on this side is a step.
┍────
┍┙
┍┙
┍┙
────┙
Four steps in above.That algorithm doesn’t count steps of a stair, it counts the number of steps you take to go up (or down) a staircase.
Those are different if you follow this nerd’s way, which, by the way, has benefits other than making it easier to count stairs. It’s a fairly easy way to get some strength training. I think everybody who can should take stairs two steps at a time. That gives you some cushion in old age, as you’ll be able to go back to one step at a time, and postpones the day where taking a stair becomes impossible.
If two steps is easy, you can make going up harder (I don’t advise that going down stairs) by sitting deeper, with your thighs horizontally, or by taking three steps at a time (four steps is out of reach for most)
USA 1st, 2nd, 3rd
UK Ground, 1st, 2nd
Is the basement in the US 0?And, why not number floors using binary or hex?
;)