GitHub - Project-EricKousei/algorithms_and_data_structures: 180+ Algorithm & Data Structure Problems using C++
Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"].
summary_ranges.cpp
Given a 2D matrix, with following properties
- Integers in each row are sorted in ascending from left to right.
- Integers in each column are sorted in ascending from top to bottom.
- A = [2,3,1,1,4], return true.
- A = [3,2,1,0,4], return false.
- Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL
- Insert a character
- Delete a character.
- Replace a character
- Input: cccbbbbaa Output: bbbcccaa