Retourner au contenu associé (entrée de forum : Fonction standard : vérifier si des entiers sont consécutif.)
Posté par Gil Cot ✔ (site web personnel, Mastodon) le 21 décembre 2021 à 16:20. En réponse au message Fonction standard : vérifier si des entiers sont consécutif.. Évalué à 2.
J'ai cherché mais pas trouver (peut être mal cherché...)
https://www.techiedelight.com/check-array-formed-consecutive-integers/ propose 2 méthodes ; https://www.geeksforgeeks.org/check-if-array-elements-are-consecutive/ propose 3 approches ; https://tutorialspoint.dev/data-structure/stack-data-structure/check-if-stack-elements-are-pairwise-consecutive si on veut utiliser une pile ;
etc. Par contre pas de fonction standard qui fasse le job à ma connaissance.
"It is seldom that liberty of any kind is lost all at once." ― David Hume
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# pistes
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au message Fonction standard : vérifier si des entiers sont consécutif.. Évalué à 2.
https://www.techiedelight.com/check-array-formed-consecutive-integers/ propose 2 méthodes ;
https://www.geeksforgeeks.org/check-if-array-elements-are-consecutive/ propose 3 approches ;
https://tutorialspoint.dev/data-structure/stack-data-structure/check-if-stack-elements-are-pairwise-consecutive si on veut utiliser une pile ;
etc. Par contre pas de fonction standard qui fasse le job à ma connaissance.
"It is seldom that liberty of any kind is lost all at once." ― David Hume