Skip to content

Commit 4b6c601

Browse files
committed
Add Spanish link for the Linked List README.
1 parent 88cef5f commit 4b6c601

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

src/algorithms/math/is-power-of-two/README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# Is a power of two
22

3-
Given a positive integer, write a function to find if it is
3+
Given a positive integer, write a function to find if it is
44
a power of two or not.
55

66
**Naive solution**
77

88
In naive solution we just keep dividing the number by two
9-
unless the number becomes `1` and every time we do so we
10-
check that remainder after division is always `0`. Otherwise
11-
the number can't be a power of two.
9+
unless the number becomes `1` and every time we do so, we
10+
check that remainder after division is always `0`. Otherwise, the number can't be a power of two.
1211

1312
**Bitwise solution**
1413

@@ -23,8 +22,8 @@ signed integer with a value of -128 looks like: `10000000`)
2322
8: 1000
2423
```
2524

26-
So after checking that the number is greater than zero,
27-
we can use a bitwise hack to test that one and only one
25+
So after checking that the number is greater than zero,
26+
we can use a bitwise hack to test that one and only one
2827
bit is set.
2928

3029
```
@@ -38,11 +37,11 @@ For example for number `8` that operations will look like:
3837
- 0001
3938
----
4039
0111
41-
40+
4241
1000
4342
& 0111
4443
----
45-
0000
44+
0000
4645
```
4746

4847
## References

src/data-structures/linked-list/README.md

+18-17
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,24 @@ _Read this in other languages:_
55
[_Русский_](README.ru-RU.md),
66
[_日本語_](README.ja-JP.md),
77
[_Português_](README.pt-BR.md),
8-
[_한국어_](README.ko-KR.md)
9-
10-
In computer science, a **linked list** is a linear collection
11-
of data elements, in which linear order is not given by
12-
their physical placement in memory. Instead, each
13-
element points to the next. It is a data structure
14-
consisting of a group of nodes which together represent
15-
a sequence. Under the simplest form, each node is
16-
composed of data and a reference (in other words,
8+
[_한국어_](README.ko-KR.md),
9+
[_Español_](README.es-ES.md),
10+
11+
In computer science, a **linked list** is a linear collection
12+
of data elements, in which linear order is not given by
13+
their physical placement in memory. Instead, each
14+
element points to the next. It is a data structure
15+
consisting of a group of nodes which together represent
16+
a sequence. Under the simplest form, each node is
17+
composed of data and a reference (in other words,
1718
a link) to the next node in the sequence. This structure
18-
allows for efficient insertion or removal of elements
19-
from any position in the sequence during iteration.
20-
More complex variants add additional links, allowing
21-
efficient insertion or removal from arbitrary element
22-
references. A drawback of linked lists is that access
23-
time is linear (and difficult to pipeline). Faster
24-
access, such as random access, is not feasible. Arrays
19+
allows for efficient insertion or removal of elements
20+
from any position in the sequence during iteration.
21+
More complex variants add additional links, allowing
22+
efficient insertion or removal from arbitrary element
23+
references. A drawback of linked lists is that access
24+
time is linear (and difficult to pipeline). Faster
25+
access, such as random access, is not feasible. Arrays
2526
have better cache locality as compared to linked lists.
2627

2728
![Linked List](https://upload.wikimedia.org/wikipedia/commons/6/6d/Singly-linked-list.svg)
@@ -75,7 +76,7 @@ Contains(head, value)
7576
return true
7677
end Contains
7778
```
78-
79+
7980
### Delete
8081

8182
```text

0 commit comments

Comments
 (0)