Skip to content

unit tests under bit_manipulation #12693

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sujan099
Copy link

Summary

This PR adds a new function scale_list under the bit_manipulation/ folder.

What It Does

  • The scale_list function takes a list of numbers and a scaling factor, and returns a new list with each element multiplied by the factor.
  • Includes a unit test file test_scale_list.py to verify correctness.

Why It's Useful

This provides a simple mathematical utility for scaling lists — useful in data preprocessing and basic arithmetic operations.

Notes

  • All code follows PEP8 style.
  • All tests pass using unittest.

Folder: bit_manipulation/

  • scale_list.py
  • test_scale_list.py

@algorithms-keeper algorithms-keeper bot added the tests are failing Do not merge until tests pass label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests are failing Do not merge until tests pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant