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

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

簡単 · 134 中級 · 68 難しい · 24

練習できるスキル: カウント文字列の分割桁の取り出し2 次元リストリストループ公式算術1 回の走査2 つのポインタwhileループポリモーフィズム
  • Python · C++ · C#
  • 自動テスト
  • AIコードレビュー
  • コミュニティの解答
226
チャレンジ数
2
共有された解答
3
対応言語

すべてのチャレンジ

トピック、言語、難易度で検索できます。

226件のチャレンジ
難しい

Shortest Delivery Tour

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

学べること ビットマスク DP巡回セールスマン問題
AdvancedBitmasksCompetitive-programmingDynamic-programming
まだ解答がありません
中級

Game of Life Step

Advance Conway's Game of Life by one generation.

学べること グリッドのシミュレーション近傍の数え上げ
AdvancedGridsHackathonSimulation
まだ解答がありません
難しい

Minimum Window Substring

Find the shortest piece of text containing all required characters.

学べること ウィンドウの伸縮頻度表
AdvancedCompetitive-programmingSliding-windowStrings
まだ解答がありません
難しい

Strongly Connected Components

Count groups of nodes that can all reach each other.

学べること グラフアルゴリズムTarjan または Kosaraju
AdvancedCompetitive-programmingGraphs
まだ解答がありません
中級

Shortest Weighted Routes

Find the minimum total route cost from city 1 to each city.

学べること ダイクストラ法遅延削除
GraphsPriority-queuesShortest-path
まだ解答がありません
難しい

Longest Path in a DAG

Find the heaviest path in a task dependency graph.

学べること トポロジカル順序DAG 上の DP
AdvancedGraphsHackathonTopological-sort
まだ解答がありません
難しい

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

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

学べること 分割位置の探索O(log n)
AdvancedBinary-searchCompetitive-programming
まだ解答がありません
中級

K-th Smallest Element

Find the k-th smallest value without fully sorting.

学べること クイックセレクト分割
AdvancedCompetitive-programmingSorting
まだ解答がありません
難しい

Largest Rectangle in a Histogram

Find the largest rectangle that fits under a histogram.

学べること 単調スタック面積の計算
AdvancedCompetitive-programmingStacks
まだ解答がありません
簡単

Distance Between Points

Compute the straight-line distance between two points.

学べること 三平方の定理平方根
BeginnerFunctionsLearning-pathmath
まだ解答がありません
難しい

Minimum Network Connection Cost

Choose undirected links so that every vertex can reach every other vertex, with minimum total cost.

学べること クラスカル法Union-Find
Disjoint-setsGraphsMinimum-spanning-tree
まだ解答がありません
難しい

Word Break

Decide whether text can be split into dictionary words.

学べること 接頭辞の DP単語への分割
AdvancedDynamic-programmingHackathonStrings
まだ解答がありません
中級

Count Islands

Count groups of connected land cells in a grid.

学べること 塗りつぶし再帰的な DFS
BeginnerGridsLearning-pathRecursion
まだ解答がありません
中級

Tournament Standings

Rank teams from match records.

学べること 結果の集計キーによるソート
DictionariesParsingSorting
まだ解答がありません
難しい

Course Schedule Order

Order courses so every prerequisite comes first.

学べること カーンのアルゴリズム閉路の検出
AdvancedGraphsHackathonTopological-sort
まだ解答がありません
中級

Gradebook Top Student

Find the student with the highest average score.

学べること 2 次元リスト平均
BeginnerFunctionsGridsLearning-path
まだ解答がありません
簡単

Count Pairs With a Sum

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

学べること インデックスの組二重カウントの回避
ArraysBeginnerLearning-pathNested-loops
まだ解答がありません
簡単

Number Triangle

Build a triangle of increasing numbers.

学べること 長くなる行行をまたぐカウンター
BeginnerLearning-pathNested-loopsPatterns
まだ解答がありません