码迷,mamicode.com
首页 >  
搜索关键字:given a n n matrix    ( 24496个结果
239. Sliding Window Maximum 239.滑动窗口最大值
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num ...
分类:Windows程序   时间:2020-09-18 01:29:48    阅读次数:47
463. Island Perimeter
package LeetCode_463 /** * 463. Island Perimeter * https://leetcode.com/problems/island-perimeter/description/ * * You are given row x col grid repres ...
分类:其他好文   时间:2020-09-17 23:30:18    阅读次数:36
【leetcode】1509. Minimum Difference Between Largest and Smallest Value in Three Moves
题目如下: Given an array nums, you are allowed to choose one element of nums and change it by any value in one move. Return the minimum difference between ...
分类:其他好文   时间:2020-09-17 22:48:12    阅读次数:35
LeetCode | 0040. Combination Sum II组合总和 II【Python】
Problem LeetCode Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where t ...
分类:编程语言   时间:2020-09-17 20:29:16    阅读次数:30
758. Bold Words in String
package LeetCode_758 import java.util.* import kotlin.collections.HashSet /** * 758. Bold Words in String * (Prime) * Given a set of keywords words an ...
分类:其他好文   时间:2020-09-17 18:53:02    阅读次数:31
HDU6314 Matrix
HDU6314 Matrix Problem Description Samwell Tarly is learning to draw a magical matrix to protect himself from the White Walkers. the magical matrix is ...
分类:其他好文   时间:2020-09-17 17:11:07    阅读次数:24
450. Delete Node in a BST - Medium
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th ...
分类:其他好文   时间:2020-09-15 21:24:11    阅读次数:42
抓住计算机编程的灵魂,矩阵的应用以及图形转换
本文作者:乐字节-坑王老薛二维图形的矩阵变换(一)——基本概念基本的二维变换可包括旋转、缩放、扭曲,和平移四种,而这些几何运算则可以转换为一些基本的矩阵运算:这几个变换都是线性的,但平移运算不是线性的,不能通过2*2矩阵运算完成。若要将点(2,1)在x方向将其平移3个单位,在y方向将其平移4个单位。可通过先使用矩阵乘法再使用矩阵加法来完成此操作。综合这几种基本运算,数学家们将其统一为一个3*3矩阵
分类:其他好文   时间:2020-09-02 16:57:39    阅读次数:49
538. Convert BST to Greater Tree
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all ...
分类:其他好文   时间:2020-08-19 19:48:05    阅读次数:63
1038. Binary Search Tree to Greater Sum Tree
Given the root of a binary search tree with distinct values, modify it so that every node has a new value equal to the sum of the values of the origin ...
分类:其他好文   时间:2020-08-19 19:47:45    阅读次数:64
24496条   上一页 1 ... 17 18 19 20 21 ... 2450 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!