Challenge: Signal
Task
Swipe to start coding
You are working with signal strength values and need to adjust them using bitwise operations. Implement two functions:
int increaseSignal(int value): increases the signal by shifting the value left by 1 bit;int decreaseSignal(int value): decreases the signal by shifting the value right by 1 bit.
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 6.67
Challenge: Signal
Swipe to show menu
Task
Swipe to start coding
You are working with signal strength values and need to adjust them using bitwise operations. Implement two functions:
int increaseSignal(int value): increases the signal by shifting the value left by 1 bit;int decreaseSignal(int value): decreases the signal by shifting the value right by 1 bit.
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 3
single