Skip to content

[Hacker Rank] Interview Preparation Kit: Miscellaneous: Flipping bits…#761

Merged
sir-gon merged 1 commit into
mainfrom
feature/flipping_bits_alternative
Jul 21, 2025
Merged

[Hacker Rank] Interview Preparation Kit: Miscellaneous: Flipping bits…#761
sir-gon merged 1 commit into
mainfrom
feature/flipping_bits_alternative

Conversation

@sir-gon

@sir-gon sir-gon commented Jul 21, 2025

Copy link
Copy Markdown
Owner

…. New way to solve ✅.


function flippingBitsAlt(n: number): number {
// eslint-disable-next-line no-bitwise
return ~n >>> 0;

Check failure

Code scanning / ESLint

Disallow bitwise operators Error

Unexpected use of '>>>'.

function flippingBitsAlt(n: number): number {
// eslint-disable-next-line no-bitwise
return ~n >>> 0;

Check failure

Code scanning / ESLint

Disallow bitwise operators Error

Unexpected use of '~'.
@codecov

codecov Bot commented Jul 21, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (eef12b0) to head (4dff352).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #761    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          109       110     +1     
  Lines         4331      4343    +12     
  Branches       505       715   +210     
==========================================
+ Hits          4331      4343    +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@sir-gon
sir-gon merged commit 56f310e into main Jul 21, 2025
42 of 43 checks passed
@sir-gon
sir-gon deleted the feature/flipping_bits_alternative branch July 21, 2025 19:52
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