diff options
Diffstat (limited to 'progs/a356.py')
-rw-r--r-- | progs/a356.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a356.py b/progs/a356.py new file mode 100644 index 0000000..52071f4 --- /dev/null +++ b/progs/a356.py @@ -0,0 +1,3 @@ +import math
+def get_First_Set_Bit_Pos(n):
+ return math.log2(n&-n)+1
\ No newline at end of file |