Let G be a connected graph with maximum degree Δ≥3 distinct
from KΔ+1. Generalizing Brooks’ Theorem, Borodin, Kostochka and
Toft proved that if p1,…,ps are non-negative integers such that $p_1
- \dots + p_s \geq \Delta - s,thenGadmitsavertexpartitionintopartsA_1, \dots, A_ssuchthat,for1 \leq i \leq s,G[A_i]isp_i$-degenerate. Here we show that such a partition can be performed in linear
time. This generalizes previous results that treated subcases of a conjecture
of Abu-Khzam, Feghali and Heggernes~\cite{abu2020partitioning}, which our
result settles in full.