File tree
Expand file treeCollapse file tree1 file changed
+11
-2
lines changed Expand file treeCollapse file tree1 file changed
+11
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
|
70 | 70 | - [Math.round](#mathround)
|
71 | 71 | - [JavaScript Integer Max Min](#javascript-integer-max-min)
|
72 | 72 | - [Bitwise operation in JavaScript](#bitwise-operation-in-javascript)
|
73 |
| -- [x>>y](#xy) |
| 73 | +- [Right Shift x>>y](#right-shift-xy) |
| 74 | +- [Left Shift x<<y](#left-shift-xy) |
74 | 75 | - [Mock Interview](#mock-interview)
|
75 | 76 | - [Get the Average value at each level of the tree](#get-the-average-value-at-each-level-of-the-tree)
|
76 | 77 | - [ADT](#adt)
|
@@ -860,11 +861,19 @@ It is 16 digit number.
|
860 | 861 |
|
861 | 862 | ## Bitwise operation in JavaScript
|
862 | 863 |
|
863 |
| -### x>>y |
| 864 | +### Right Shift x>>y |
| 865 | + |
| 866 | +Moving bit/s towards the right side in binary number. |
864 | 867 |
|
865 | 868 | `x>>y` means `x/2^y` divide x by 2 to the power of y.
|
866 | 869 |
|
| 870 | +### Left Shift x<<y |
| 871 | + |
| 872 | +Moving bit/s towards the left side in binary number. |
| 873 | + |
| 874 | +`4<<2 == 0` |
867 | 875 |
|
| 876 | +`x<<y` means `x*2^y` multiply x by 2 to the power of y. |
868 | 877 |
|
869 | 878 | ## Mock Interview
|
870 | 879 |
|
|
You can’t perform that action at this time.
0 commit comments