[Hacker Earth] The Circular jump (Lowe)Read more
[Codeforces] Round 146 (Div. 1) B. Let`s Play Osu!Read more
[Codeforces] Round 147 (Div. 2) D. T-decompositionRead more
[Codeforces] Round 147 (Div. 2) E. Build StringRead more
[Codeforces] Bayan 2012-2013 Elimination Round (ACM ICPC Rules, English statements) C. Mirror BoxRead more
[Codeforces] Round 149 (Div. 2) E. XOR on SegmentRead more
[LeetCode] Special Positions in a Binary Matrix

1582. Special Positions in a Binary Matrix

Given an m x n binary matrix mat, return the number of special positions in mat.

A position (i, j) is called special if mat[i][j] == 1 and all other elements in row i and column j are 0 (rows and columns are 0-indexed).

Read more
[Hacker Earth] Count Coprime SubsequencesRead more
[Hacker Earth] Straightest pathRead more
[Hacker Earth] Edge Strength (Lowe)Read more