Keep calm and...Theater Seats... That is all.
If you are actually counting the person, then it should be the result-1, because a person can't block themselves.
Is it counting the person too ? I think he is excluded when we subtract the row from nRows .
row
nRows
Thanks!
I really found this method to be interesting apporach to sole this kata , i was able to visualize that i can delete number if its found more than one in kata but not able conceptualize as code where and how :)
somehow my brain misses chars and map :p
Learned how to throw message "undefined" with rescuw I was not able to deduce this :)
Hhaah i like this facny way of presentation :)
done :)
please mark ur comment as spoiler, as its visible to others on the dashboard!
This comment is hidden because it contains spoiler information about the solution
I think this was simplest soltion apprach i could find :) Thank you
i made a mistake what i did was list.map(regexp)
I went with if else and using range along with .include method but i believe this is way simple and should be faster
Theater.seats nCols nRows col row == 96 , This is all people including the person himself , I think it should be 96-1 as we cant count person himself
Loading collection data...
Keep calm and...Theater Seats... That is all.
If you are actually counting the person, then it should be the result-1, because a person can't block themselves.
Is it counting the person too ? I think he is excluded when we subtract the
row
fromnRows
.Thanks!
I really found this method to be interesting apporach to sole this kata , i was able to visualize that i can delete number if its found more than one in kata but not able conceptualize as code where and how :)
somehow my brain misses chars and map :p
Learned how to throw message "undefined" with rescuw I was not able to deduce this :)
Hhaah i like this facny way of presentation :)
done :)
please mark ur comment as spoiler, as its visible to others on the dashboard!
This comment is hidden because it contains spoiler information about the solution
I think this was simplest soltion apprach i could find :) Thank you
i made a mistake what i did was list.map(regexp)
I went with if else and using range along with .include method but i believe this is way simple and should be faster
Theater.seats nCols nRows col row == 96 , This is all people including the person himself , I think it should be 96-1 as we cant count person himself
Loading more items...