54 cout <<
itor.get_curr() <<
" ";
62 cout <<
itor.get_curr() <<
" ";
70 cout <<
itor.get_curr() <<
" ";
77 for (
int i = 0; i < list.
size(); i++)
78 cout << list[i] <<
" ";
82 for (
int i = 0; i < list.
size(); i++)
83 cout << list[list.
size() - i - 1] <<
" ";
92 cout <<
itor.get_curr() <<
" ";
Core header for the Aleph-w library.
Iterator specialized for DynSlist returning payload references.
Dynamic list of elements of type T implemented with a singly linked list of nodes.
size_t size() const noexcept
Return the number of stored elements.
void remove(const int pos)
Remove the node at position pos.
void insert(const int pos, const T &data)
Insert an element at position pos.
Divide_Conquer_DP_Result< Cost > divide_and_conquer_partition_dp(const size_t groups, const size_t n, Transition_Cost_Fn transition_cost, const Cost inf=dp_optimization_detail::default_inf< Cost >())
Optimize partition DP using divide-and-conquer optimization.
Dynamic singly linked list.