読者です 読者をやめる 読者になる 読者になる

Find an Element from Sorted Matrix

Problem Given an M * N matrix in which each row and each column is sorted in ascending order, write a method to find an element. Solution O(N + M) solution By traversing matrix from upper right to lower left, we can solve this problem in O…

Range Sum Query 2D - Mutable : Past Google Coding Interview

Problem https://leetcode.com/problems/range-sum-query-2d-mutable/ How to Solve This problem can be solved by using Binary Indexed Tree. Please check below article if you want to know the details of Binary Indexed Tree. keita-matsushita.hat…

行列計算を行うクラスを作成する

行列計算は2重配列を用いて実装する。今回実装した機能は以下の通り。 行列の生成 足し算 引き算 掛け算 Matrix Class Implementation