码迷,mamicode.com
首页 >  
搜索关键字:given a n n matrix    ( 24496个结果
0088. Merge Sorted Array (E)
Merge Sorted Array (E) 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements in ...
分类:其他好文   时间:2021-01-13 11:10:22    阅读次数:0
[Leetcode]1. Two Sum
题目描述 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that eac ...
分类:其他好文   时间:2021-01-13 11:07:09    阅读次数:0
96. Unique Binary Search Trees(dp)
Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? Example: Input: 3 Output: 5 Explanation: Given n = 3, the ...
分类:其他好文   时间:2021-01-12 11:12:21    阅读次数:0
0127. Word Ladder (H)
Word Ladder (H) 题目 Given two words beginWord and endWord, and a dictionary wordList, return the length of the shortest transformation sequence from be ...
分类:其他好文   时间:2021-01-12 10:54:49    阅读次数:0
LeetCode | 0230. 二叉搜索树中第K小的元素【Python】
Problem LeetCode Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Example 1: Input: root = [3,1,4,null ...
分类:编程语言   时间:2021-01-11 10:45:32    阅读次数:0
[leetcode/lintcode 题解] 字节跳动面试题: 寻找峰值 II
描述 给定一个整数矩阵 A, 它有如下特性: 相邻的整数不同 矩阵有 n 行 m 列,n和m不会小于3。 对于所有的 i < n, 都有 A[i][0] < A[i][1] && A[i][m - 2] > A[i][m - 1] 对于所有的 j < m, 都有 A[0][j] < A[1][j] ...
分类:其他好文   时间:2021-01-08 11:17:41    阅读次数:0
202012leetcode刷题记录
73. 矩阵置零 题目要求: 给定一个m x n的矩阵,如果一个元素为 0,则将其所在行和列的所有元素都设为 0。请使用原地算法。 思路: 由于需要用到原地的算法,因此需要想办法对含0的行列进行标记。当矩阵中的某个元素为0时,则将其所在行和列的第一个元素置零作为标记。而matrix[0][0]同时成 ...
分类:其他好文   时间:2021-01-07 12:31:31    阅读次数:0
1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree (M)
Find a Corresponding Node of a Binary Tree in a Clone of That Tree (M) 题目 Given two binary trees original and cloned and given a reference to a node t ...
分类:其他好文   时间:2021-01-06 11:39:40    阅读次数:0
212. Word Search II
package LeetCode_212 /** * 212. Word Search II * https://leetcode.com/problems/word-search-ii/ * Given an m x n board of characters and a list of stri ...
分类:其他好文   时间:2021-01-05 11:21:11    阅读次数:0
0084. Largest Rectangle in Histogram (H)
Largest Rectangle in Histogram (H) 题目 Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the ...
分类:其他好文   时间:2021-01-05 10:40:12    阅读次数:0
24496条   上一页 1 ... 12 13 14 15 16 ... 2450 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!