10000 creating the remaining folders · developgo/algorithms_with_Go@119456f · GitHub
[go: up one dir, main page]

Skip to content

Commit 119456f

Browse files
committed
creating the remaining folders
1 parent 20e06e6 commit 119456f

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ WIP, the description of the below `unsolved yet` problems can be found in the or
7979
- [] Check if a binary tree is subtree of another binary tree
8080
- [] Reverse alternate levels of a perfect binary tree
8181

82-
## Number Theory
82+
## [Number Theory](https://github.com/danrusei/algorithms_with_Go/tree/main/numbers)
8383

8484
- [] Modular Exponentiation
8585
- [] Modular multiplicative inverse
@@ -92,7 +92,7 @@ WIP, the description of the below `unsolved yet` problems can be found in the or
9292
- [] Chinese remainder theorem
9393
- [] Lucas Theorem
9494

95-
## BIT Manipulation
95+
## [BIT Manipulation](https://github.com/danrusei/algorithms_with_Go/tree/main/bitwise)
9696

9797
- [] Maximum Subarray XOR
9898
- [] Magic Number
@@ -105,7 +105,7 @@ WIP, the description of the below `unsolved yet` problems can be found in the or
105105
- [] Count number of bits to be flipped to convert A to B
106106
- [] Find Next Sparse Number
107107

108-
## String / Array
108+
## [String / Array](https://github.com/danrusei/algorithms_with_Go/tree/main/strings)
109109

110110
- [] Reverse an array without affecting special characters
111111
- [] All Possible Palindromic Partitions

bitwise/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Bitwise Operation
2+
3+
In computer programming, a bitwise operation operates on a bit string, a bit array or a binary numeral (considered as a bit string) at the level of its individual bits. It is a fast and simple action, basic to the higher level arithmetic operations and directly supported by the processor. Most bitwise operations are presented as two-operand instructions where the result replaces one of the input operands.
4+
5+
On simple low-cost processors, typically, bitwise operations are substantially faster than division, several times faster than multiplication, and sometimes significantly faster than addition.[clarification needed] While modern processors usually perform addition and multiplication just as fast as bitwise operations due to their longer instruction pipelines and other architectural design choices, bitwise operations do commonly use less power because of the reduced use of resources.
6+
7+
***Source: [Wikipedia](https://en.wikipedia.org/wiki/Bitwise_operation)***
8+
9+
## Go built-in operators
10+
11+
| Operation | Result | Description
12+
| ----------- | ----------- | ----------- |
13+
|0011 & 0101 | 0001 | Bitwise AND
14+
|0011 \| 0101 | 0111 | Bitwise OR
15+
|0011 ^ 0101 | 0110 | Bitwise XOR
16+
|^0101 | 1010 | Bitwise NOT (same as 1111 ^ 0101)
17+
|0011 &^ 0101i | 0010 | Bitclear (AND NOT)
18+
|00110101 << 2 | 11010100 | Left shift
19+
|00110101 << 100 | 00000000 | No upper limit on shift count
20+
|00110101 >> 2 | 00001101 | Right shift

numbers/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#TBD

strings/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#TBD

0 commit comments

Comments
 (0)
0