文章 2023-11-01 来自:开发者社区

Leetcode 74. Search a 2D Matrix

题目链接:Search a 2D MatrixWrite an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:* Integers in each row are sorted from left to right.* The f....

文章 2023-01-05 来自:开发者社区

LeetCode 212. Word Search II

DescriptionGiven a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjacent cell, where "adjacent" cells are t....

LeetCode 212. Word Search II
文章 2023-01-05 来自:开发者社区

LeetCode 79. Word Search

DescriptionGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or ve....

LeetCode 79. Word Search
文章 2023-01-05 来自:开发者社区

LeetCode 74. Search a 2D Matrix

DescriptionWrite an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right.The first integer of ....

LeetCode 74. Search a 2D Matrix
文章 2022-05-20 来自:开发者社区

Leetcode-Medium 96.Unique Binary Search Trees

题目描述给定一个整数 n,求以 1 ... n 为节点组成的二叉搜索树有多少种?示例:输入: 3 输出: 5 解释: 给定 n = 3, 一共有 5 种不同结构的二叉搜索树: 1 3 3 2 1 \ / / / \ \ 3 2 1 1 3 2 ...

文章 2021-12-15 来自:开发者社区

LeetCode之Search Insert Position

1、问题Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array....

文章 2017-12-10 来自:开发者社区

[LeetCode] Find Mode in Binary Search Tree 找二分搜索数的众数

Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is defined as follows: The left subtree of a node...

文章 2017-12-03 来自:开发者社区

[LeetCode] Search a 2D Matrix 搜索一个二维矩阵

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:  Integers in each row are sorted from left to right. The f...

文章 2017-12-03 来自:开发者社区

[LeetCode] Word Search 词语搜索

Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically n....

文章 2017-12-02 来自:开发者社区

[LeetCode] Search Insert Position 搜索插入位置

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array. H....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

算法编程

开发者社区在线编程频道官方技术圈。包含算法资源更新,周赛动态,每日一题互动。

+关注