Added Kth stair problem Solution - #423
Conversation
Thanks for creating a PR for your Issue!
|
| // Total height covered if only "up" moves were taken: | ||
| // sum of powers of 2 up to i = (2^(i+1) - 1) | ||
| // Alice starts from stair 1, so total stairs from 1 = (2^i) | ||
| // stairs_covered_back = total up movement - target stair (k) |
There was a problem hiding this comment.
There are too many comments in this particular file @aaqeebpinjari
Please make it as less as possible to reduce the LOC.
| // Total height covered if only "up" moves were taken: | |
| // sum of powers of 2 up to i = (2^(i+1) - 1) | |
| // Alice starts from stair 1, so total stairs from 1 = (2^i) | |
| // stairs_covered_back = total up movement - target stair (k) | |
There was a problem hiding this comment.
@shivamm-verma thanks for feedback
Fine I'll make changes ,
I have raised total 3 PR
Make suggestions in that
I'll make change in all at same time and make PR
Thanks for looking into this
updated file as per admin instrunction.
There was a problem hiding this comment.
@shivamm-verma , i made the changes and make it short and more readable, all changes are as per ur instructions looking forward for getting reviwed

@shivamm-verma , @Shivangi10-10 , Good afternoon and Thanks for accepting my Request, Here by is my PR, looking forward for getting reviewed and Getting My PR merge into ur Valuable Codebase
Issue number if any:-
Fixes #390
✅ Contribution Checklist (make sure all are checked)
.cpp,.java,.py, etc.)Screenshot of Result as proof and Added Comments for Better Understanding
📝 Type of Addition (check any one)
📊 Last check (make sure all are checked
🏢 Your Organization?