76 cerr <<
"Error: n must be a positive integer." <<
endl;
82 for (
int i = 0; i < n; ++i)
89 for (
int i = 0; i < n; ++i)
96 cout <<
"Lista de " << sz <<
" elementos partida en dos" <<
endl;
127 cout <<
"****************" <<
endl;
131 for (
int i = 0; i < n; ++i)
138 cout <<
"Mostrando todos los elementos .. " <<
endl;
Iterator on the items of list.
Dynamic singly linked list with functional programming support.
T & insert(const T &item)
T & append(const T &item)
DynList & reverse() noexcept
Generic filter iterator wrapper.
Slinknc * get_curr() const
bool has_curr() const noexcept
Single linked list of nodes.
void remove_all_and_delete() noexcept
size_t reverse() noexcept
It inverts all list elements. It returns list size.
constexpr bool is_empty() const noexcept
void cut(Slinknc *link, HTList &list) noexcept
It cuts 'this' over 'link' element and it puts all.
void append(Slinknc *link) noexcept
size_t split_list(HTList &l, HTList &r) noexcept
It divides 'this' into two equal lists without modifying.
void insert(Slinknc *link) noexcept
T & get_data() noexcept
Return a modifiable reference to the data.
Generic filter iterator wrapper for Aleph containers.
Singly linked list implementations with head-tail access.
Main namespace for Aleph-w library functions.
and
Check uniqueness with explicit hash + equality functors.
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.
bool operator()(int i) const
Filter_Iterator< DynList< int >, DynList< int >::Iterator, Par > It