-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding PHP implementation for LIS (Issue #2253) #2669
Conversation
@raghav-dalmia @SakshiShreya @AdityaShD Kindly review my PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Squash your commits before you push it
@@ -0,0 +1,44 @@ | |||
<?php | |||
// PHP Implementation of LIS using Dynamic Programming |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this commend at the beginning of the file
|
||
// fumction to return the length of LIS | ||
function lisLen($arr, $n){ | ||
// $dp[$i] represents length of LIS ending at index i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this commend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the second required change in the PR. Left the first one as discussed with you @asha15
Kindly review it.
Update LIS.php
Since, it has been approved, kindly merge it @asha15 @jainaman224 |
Update LIS.php
Fixes #2253
Checklist:
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
Changes proposed in this pull request:
Languages Used:
Files Added:
Thanks!