Closed 072arushi closed 2 years ago
Hello @072arushi, thanks for creating your first issue at LearnCPP, hope you followed the guidelines.
/assign
This issue has been assigned to 072arushi! It will become unassigned if it is not closed within 12 days. A maintainer can also add the pinned label to prevent it from being unassigned.
This issue is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 2 days.
This issue was closed because it has been stalled for 5 days with no activity. Please reopen this issue if not resolved.
Description
Given two numbers x and y, and a range [l, r] where 1 <= l, r <= 32. The task is to consider set bits of y in the range [l, r] and set these bits in x also.
Examples :
Input : x = 10, y = 13, l = 2, r = 3 Output : x = 14
Input : x = 8, y = 7, l = 1, r = 2 Output : x = 11
Domain
CPP
Type of Contribution
Addition
Code of Conduct