fix: reordering and fix of small errors
This commit is contained in:
parent
b7cba109ed
commit
6280172289
|
|
@ -10,7 +10,7 @@ class Node {
|
||||||
int data;
|
int data;
|
||||||
|
|
||||||
public Node(int d){
|
public Node(int d){
|
||||||
data = d;
|
this.data = d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void appendToTail(int d){
|
void appendToTail(int d){
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# 16.8. Contiguous sequence or Maximum subarray problem
|
# 16.8. Contiguous sequence or Maximum subarray problem
|
||||||
|
|
||||||
## Given an array of integers, both negative and positive, find the contiguous sequence with the largest sum. Return the sum
|
> Given an array of integers, both negative and positive, find the contiguous sequence with the largest sum. Return the sum
|
||||||
|
|
||||||
> example:
|
Example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nums = [2, -8, 3, -2, 4, -10]
|
nums = [2, -8, 3, -2, 4, -10]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue