sujithamypersonalblog.hashnode.dev·Jul 11, 2024Largest Local Values ProblemGiven a 2D matrix of integers, your task is to find the largest local value for each element, excluding the border elements. The local value for an element at position (i, j) is defined as the maximum value within its 3x3 submatrix centered on (i, j)...Discussbrute force

Gulshan Kumarperfinsights.hashnode.dev·Jul 7, 2024Matrix Diagonal SumGiven a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the elements on the primary diagonal and all the elements on the secondary diagonal that are not part of the primary diagonal. LeetCode Problem - 1572 clas...DiscussJava SolutionJava

Tahzib Mahmud Rifatrifat05.hashnode.dev·Jun 30, 2024Cells with Odd Values in a Matrix(LeetCode-easy)INTRODUCTION We, have given two array one is main array matrix and other is indices[is a 2D array]. Each indices value consist two things one is row value and another is column value, indices[i] = [ri, ci]. And our task is to simply increment by 1 t...DiscussLeetCodeincrement

Vineeth Chivukulavineethchivukula.hashnode.dev·Jun 25, 2024Understanding Matrix TraversalMatrix traversal, also known as Island problems, often encountered in matrix or grid-based scenarios, typically involves identifying and counting connected components of a specific value (usually represented as '1' for land) in a binary matrix. These...DiscussMatrix

Utkarsh Hadgekar forDigital Wealth Pathwaysdigitalwealthpathways.hashnode.dev·Jun 19, 2024Symphony of Success : What does Success sounds like to you ?People often strive to get success or want the success. But the definition of success is not same for everybody. You'll probably look at a rich guy, and will say.... "oh He, is Successful" or someone who has millions of followers on Youtube or instag...Discuss·1 likesuccess

Sunghoon Kimssuhoon.hashnode.dev·Jun 10, 2024행렬이 뭐에요?행렬이 뭔가요? 행렬(matrix)는 벡터를 원소로 가지는 2차원 배열입니다. 행렬 $X$는 $X_1$ 원소부터 $X_n$까지 n개의 행 벡터로 이루어진 행렬이다 각각의 행 벡터는 m개의 원소 성분으로 이루어지는 벡터이다. 행렬은 행(row)과 열(column)이라는 인덱스(index)를 가진다. 행렬의 특정 행(열)을 고정하면 행(열)벡터라 부른다. 행렬을 이해하는 방법 (1) 벡터가 공간에서 한 점을 의미한다면 행렬은 여러 점...Discuss인공지능 기초Mathematics

Gulshan Kumarperfinsights.hashnode.dev·May 18, 2024Row With Maximum OnesGiven a m x n binary matrix mat, find the 0-indexed position of the row that contains the maximum count of ones, and the number of ones in that row. In case there are multiple rows that have the maximum count of ones, the row with the smallest row nu...DiscussJava Solutionarray

Tapan Rachchhtapanrachchh.hashnode.dev·May 14, 20241219. Path with Maximum Goldclass Solution: def getMaximumGold(self, grid: List[List[int]]) -> int: m, n = len(grid), len(grid[0]) ans = 0 def travel(x, y, gold, visited): nonlocal ans if x >= 0 and y >= 0 and x < m and y < ...DiscussPython

Obidur Rahmanashfin.hashnode.dev·May 13, 2024Matrix Fundamentals: A Beginner's GuideHello, wonderful readers! Today, let's embark on a fun adventure into the world of matrices and how they make Machine Learning even more magical. If you're new to this, fear not! We'll breeze through it together, step by step. We will learn their fun...Discuss·1 likeMathematics

Haocheng Linhaochengcodedev.hashnode.dev·May 5, 2024Simplifying the Gaussian Formula Using Completing the SquareIntroduction As math enthusiasts, we often encounter complex formulas that appear daunting at first glance. However, even the most intricate equations can be simplified and understood. Today, we'll delve into the Gaussian formula and demonstrate how ...Discussgaussian