找到约 10000 条结果
  • leetcode34 search for a range
    即 在一个有序排列的数组中,找到目标值所在的起始下标和结束下标。如果该目标值不在数组中,则返回[-1,-1]题目中有一个特殊要求是时间复杂度为O(logn),也就是在暗示我们,不能只是单纯的按照顺序遍历数组,要尽量减去无效遍历。所以这题的核心思路为二分法遍历。
    2017-04-29
  • [LintCode/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.
    2016-05-18
  • Leetcode - Word Search I,II
    我的思路:1.首先得在board中寻找首元素可能出现的位置,对每个合法的开始位置进行dfs2.每次dfs的过程中,结合backtracing避免回退
    2018-07-31
  • 35. 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.
    2019-02-02
  • Leetcode 79. 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 adjacentcell, where "adjacent" cells are those horizontally or verticallyneighboring. The same letter cell may not be used more than once. Example: board = [ ['A','B','C','E']...
    2019-03-18
  • 如何分析 SAP Spartacus 路由问题之 CheckoutAuthGuard 单步调试
    The standard Storefront is used which is generated by Spartacus Schematics.
    2021-06-16
  • COM1005 Rambler问题
    Assignment: The Rambler’s ProblemCOM1005 Machines and IntelligenceSemester 2: Experiments with AI TechniquesHeidi ChristensenUniversity of SheffieldVersion 1.1This assignment carries 30% of the marks for COM1005DUE DATE: Friday 21st May 2021 at 23:59 (UK Time)In this assignment you’ll experiment ...
    2022-05-10
  • 【vue组件库】基于@vue/cli构建typescript版UI库 -环境搭建
    使用@vue/cli4脚手架,从零开始搭建typescript版的UI库1. 全局安装@vue/cli4官网地址:[链接] {代码...} 2.构建项目 {代码...} 3.简单配置vscode 保存自动格式化 {代码...} yarn serve时自动打开浏览器 {代码...} 4.目录结构设计packages: 组件源码website: 原src目录,改为组件文档官网,展示示例website/docs: 组件文...
    2021-05-10
  • LeetCode 695. Max Area of Island
    Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are surrounded by water.
    2018-01-13
  • Best way to handle any exception
    面相stackoverflow编程 {代码...}
    2020-03-08
  • 博客搭建之路:hexo增加搜索功能
    在博客目录下安装npm install hexo-generator-search --save,此时使用hexo cl && hexo g就会在博客public目录下生成一个search.json,在使用hexo d部署上去搜索就可以用了
    2024-10-23
  • 新的HTML标签 :<search>
    本文首发于微信公众号:大迁世界, 我的微信:qq449245884,我会第一时间和你分享前端行业趋势,学习途径等等。更多开源作品请看 GitHub [链接] ,包含一线大厂面试完整考点、资料以及我的系列文章。
    2023-05-24
  • Leetcode复习小结: Binary Search
    Binary SearchBinary Search的题目我之前一直搞不清楚,一写就错,现在好了一些,总结下模版。模版分成两种:一、寻找某个指定的值,比如问数组中是否存在这个target,或者这个target的index是多少,对于这一种有三种模版:1.lo <= hi
    2019-07-08
  • 修改forge search方法,加入完全匹配标记,解决搜索是模糊搜索问题
    viewer3d.js15194行 {代码...} 19173行 {代码...} 38881行 {代码...} lmvworker.js35941行 {代码...} 22754行 {代码...}
    2019-08-06
  • GitBook 简明教程
    GitBook 是一个命令行工具。通过它,你能够使用 Git 和 Markdown 来编排书本。并且通过工具可以自动生成相应的 HTML、PDF 和 epub 格式的文件。
    2016-02-26
    3
  • [elixir! #0033] 在 elixir 项目中使用 riak 数据库(2) ---- 启用 solr 搜索
    Solr是一个高性能,采用Java5开发,基于Lucene的全文搜索服务器。同时对其进行了扩展,提供了比Lucene更为丰富的查询语言,同时实现了可配置、可扩展并对查询性能进行了> 优化,并且提供了一个完善的功能管理界面,是一款非常优秀的全文搜索引擎。
    2017-03-16
  • 记录一些日常的小问题(前端)
    1、多重循环遍历查找优化开发中经常会遇到需要在一个数组中查找某一个对象的问题,单纯用for循环语句循环查找。(typescript)之前写的是这样的
    2018-11-28