Python のコーディングチャレンジ

Python で解けるチャレンジ 341 問。はじめてのループからグラフ、動的計画法、機械学習まで。ブラウザでコードを書き、すぐにテストを実行して AI のレビューを受けられます。

簡単 · 193 中級 · 119 難しい · 29

練習できるスキル: 二重ループ桁の取り出し文字列の分割カウントループ条件分岐剰余演算素数判定2 次元リストエラトステネスの篩リスト入力の検証
  • Python · C++ · C#
  • 自動テスト
  • AIコードレビュー
  • コミュニティの解答
341
チャレンジ数
245
共有された解答
9
対応言語

すべてのチャレンジ

名前やトピックで検索したり、難易度で絞り込んだりできます。

341件のチャレンジ
簡単

Distance Between Points

Compute the straight-line distance between two points.

学べること 三平方の定理平方根
初級関数Learning-path数学
中級

Game of Life Step

Advance Conway's Game of Life by one generation.

学べること グリッドのシミュレーション近傍の数え上げ
上級グリッドHackathonSimulation
難しい

Shortest Delivery Tour

Visit every city once and return home as cheaply as possible.

学べること ビットマスク DP巡回セールスマン問題
上級Bitmasks競技プログラミング動的計画法
難しい

Minimum Window Substring

Find the shortest piece of text containing all required characters.

学べること ウィンドウの伸縮頻度表
上級競技プログラミングSliding-windowStrings
難しい

Longest Path in a DAG

Find the heaviest path in a task dependency graph.

学べること トポロジカル順序DAG 上の DP
上級GraphsHackathonTopological-sort
中級

Gradebook Top Student

Find the student with the highest average score.

学べること 2 次元リスト平均
初級関数グリッドLearning-path
中級

Count Islands

Count groups of connected land cells in a grid.

学べること 塗りつぶし再帰的な DFS
初級グリッドLearning-path再帰
中級

K-th Smallest Element

Find the k-th smallest value without fully sorting.

学べること クイックセレクト分割
上級競技プログラミングソート
簡単

素数判定

数が素数かどうかを判定してください。

学べること 割り切れるかの判定ループの最適化
初級ループ数値初心者向け
難しい

Word Break

Decide whether text can be split into dictionary words.

学べること 接頭辞の DP単語への分割
上級動的計画法HackathonStrings
難しい

2つのソート済み配列の中央値

2つのソート済みリストを結合したときの中央値を求めてください。

学べること 分割位置の探索O(log n)
上級二分探索競技プログラミング
簡単

Number Triangle

Build a triangle of increasing numbers.

学べること 長くなる行行をまたぐカウンター
初級Learning-path二重ループパターン
簡単

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

学べること 算術戻り値
初級Learning-pathVariables
難しい

Strongly Connected Components

Count groups of nodes that can all reach each other.

学べること グラフアルゴリズムTarjan または Kosaraju
上級競技プログラミングGraphs
簡単

Count Pairs With a Sum

Count pairs of positions whose values add up to a target.

学べること インデックスの組二重カウントの回避
Arrays初級Learning-path二重ループ
簡単

Days in a Month

Return how many days a month has, including leap years.

学べること 暦の規則補助関数
初級条件分岐関数Learning-path
難しい

Course Schedule Order

Order courses so every prerequisite comes first.

学べること カーンのアルゴリズム閉路の検出
上級GraphsHackathonTopological-sort
難しい

Largest Rectangle in a Histogram

Find the largest rectangle that fits under a histogram.

学べること 単調スタック面積の計算
上級競技プログラミングスタック