-
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
Added Postman Sort in JavaScript #2729
Conversation
@jainaman224 @asha15 @SakshiShreya I have created a PR for Postman Sort in JavaScript. Kindly have a look at it. |
@somya-kapoor I have created a PR for Postman Sort in JavaScript. Kindly have a look at it. |
t = j; | ||
} | ||
} | ||
temp = arr1[t]; |
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.
Add a swap function.
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.
in Javascript, Call by reference functions don't work as there are no pointers in js. Therefore i haven't used swap function here.
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.
ok
@jainaman224 @singh-shreya6 @somya-kapoor I have modified the code. Kindly have a look at it. |
@singh-shreya6 I have done the required changes. Please have a look at it. |
Please squash your commits now, so that it can be merged |
Modified Modified
@singh-shreya6 I have squashed the commits. Kindly do have a look at it. |
Modified Modified
Fixes #2251
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!