NeoAlgo icon indicating copy to clipboard operation
NeoAlgo copied to clipboard

Swap Two Nibbles

Open mahimagoyalx opened this issue 6 years ago • 7 comments

🚀 Feature

Given a byte, swap the two nibbles in it.

For example 100 is be represented as 01100100 in a byte (or 8 bits). The two nibbles are (0110) and (0100). If we swap the two nibbles, we get 01000110 which is 70 in decimal.

Have you read the Contributing Guidelines on Pull Requests?

Yes

Motivation

I want to solve this issue as a part of CH20.

Pitch

It is a good bit manipulation problem.

Assignees

  • C++: @mahimagoyalx
  • Java: @ritvij14
  • Python: @narayan2111
  • C: @ag278

mahimagoyalx avatar Sep 11 '20 12:09 mahimagoyalx

I would like to implement this in C++ as a part of CH20. @HarshCasper @SKAUL05 @atarax665 @Abhijit2505 @iamrajiv Please assign me this issue. Thank you!

mahimagoyalx avatar Sep 11 '20 12:09 mahimagoyalx

I would like to take this in Java for CH20.

ritvij14 avatar Sep 11 '20 13:09 ritvij14

I would like to work on this issue in python

narayan2111 avatar Sep 11 '20 14:09 narayan2111

I would like to solve this issue in C for CH20

ag278 avatar Sep 11 '20 20:09 ag278

I would like to do this in C#

rutujadhanawade avatar Sep 14 '20 09:09 rutujadhanawade

We are logging the scores for the Contributor's Hack 2020. If you have one or more than one PR merged during the program, make sure to fill this form

HarshCasper avatar Sep 26 '20 10:09 HarshCasper

Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Telegram or ping one of the reviewers. Thank you for your contributions!

github-actions[bot] avatar Nov 26 '20 00:11 github-actions[bot]