🗽
🗽
🗽
🗽
C/Cpp and OS
Search…
Guide
Templates and methods
Linked List with C
Linked List with C++
Stacks with C
Queues with C
Graphs with C/C++
Trees with C/C++
DS with C
Reverse Linked List
Implement Queue with LL
Find mid of LL without traverse
Delete a Node from LL
Create a Binary search tree
String and Array
Reverse string
implement strcmp in C
Maximum Subarray
CTCI
Ch 01 - Arrays and Strings
1.1 - Is Unique
1.2 - Check Permutation
1.3 - URLify
1.4 - Palindrome Permutation
1.5 - One Away
1.6 - String Compression
1.7 - Rotate Matrix
1.8 - Zero Matrix
1.9 - String Rotation
16.8 - English Int
16.17 - Contiguous Sequence
16.22 - Langton's Ant
17.4 - Missing Number
17.7 - Baby Names
17.13 - Re-Space
17.22 - Word Transformer
17.26 - Sparse Similarity
Ch 02 - Linked List
Algorithm
Bubble Sort
Insertion Sort
Merge Sort
Count Prime
Basic Concept in C
Understand about pointer
Pre/Post Increment Operator
string and constant charaters
buffer​ overflow
Short-circuit evaluation
Allocate memory for 2D array dynamically
OS review
For beginner
Reference
Question Collecting:
References
Template on Linux
Powered By GitBook
16.17 - Contiguous Sequence
You are given an array of integers (both positive and negative). Find the contiguous sequence with the largest sum. Return the sum. EXAMPLE Input: 2, -8, 3, -2, 4, -10 Output: 5 (i.e., (3, -2, 4})
Previous
16.8 - English Int
Next
16.22 - Langton's Ant
Last modified 5mo ago
Copy link