We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8930d8 commit 6c692e8Copy full SHA for 6c692e8
src/hackerrank/interview_preparation_kit/miscellaneous/flipping-bits.ts
@@ -5,7 +5,7 @@
5
const __BINARY_BASE__ = 2;
6
const __NUMBER_SIZE_IN_BITS__ = 32;
7
8
-export function flippingBits(n: number): number {
+function flippingBits(n: number): number {
9
let nBinaryStr = n.toString(__BINARY_BASE__);
10
nBinaryStr = nBinaryStr.padStart(__NUMBER_SIZE_IN_BITS__, '0');
11
@@ -23,3 +23,4 @@ export function flippingBits(n: number): number {
23
}
24
25
export default { flippingBits };
26
+export { flippingBits };
0 commit comments