Skip to content

Add few algos implementation #133

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

Closed
wants to merge 1 commit into from
Closed

Add few algos implementation #133

wants to merge 1 commit into from

Conversation

tapaswenipathak
Copy link
Contributor

@tapaswenipathak tapaswenipathak commented Aug 2, 2018

This adds implementation of

  • Count set bits in a number
  • XOR without using XOR operator
  • Count bits to convert one number to another
  • Check if a number is power of 2
  • Multiply a number By 7
  • Find number of pairs with Pandigital Concatenation
  • Booth's multiplication
  • Segment tree with alternating OR and XOR opertions
  • Karatsuba Multiplication
  • TSP using Bitmasking and Dynamic Programming
  • Converting floating point to binary representation

using bitwise operators.

@trekhleb
Copy link
Owner

@tapasweni-pathak thank you very much for PR! But could you please make PRs to be more focused. Instead of creating PR for all function at once let's have separate PRs and thus separate discussions for each of the function you want to contribute. Meanwhile I'll close this PR. Waiting forward to see your next more focused ones!

@trekhleb trekhleb closed this Aug 10, 2018
@tapaswenipathak
Copy link
Contributor Author

@trekhleb thanks for the review, I have created an algo per PR(s) from this PR

I'll complete adding few updates in the above PRs, add few more PRs from this PR's checklist and update this comment, please let me know if you want me to add more to the description of any of the PRs. Feel free to ignore merging any of the PRs, wanted to look at the structure of this repo so added few PRs; thanks for creating the repo, great resource for someone who is new to algorithms and/or looking for an implementation using JavaScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants