[LeetCode] Search in Rotated Sorted Array
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no duplicate exists in the array.
2017-06-20
essential c++ ch3
3.1 {代码...} 3.2 {代码...}
2016-02-23
elasticsearch学习笔记(二十八)——Elasticsearch 实战各种query搜索
每个子查询都会计算一个document针对它的相关度分数,然后bool综合所有分数,合并为一个分数,当然filter是不会计算分数的。示例:
Elastic-Search Query DSL Demo
{代码...}
2022-12-23
JAVA数据结构——栈
顺序栈:栈(stack)又名堆栈,它是一种运算受限的线性表。限定仅在表尾进行插入和删除操作的线性表。这一端被称为栈顶,相对地,把另一端称为栈底。向一个栈插入新元素又称作进栈、入栈或压栈,它是把新元素放到栈顶元素的上面,使之成为新的栈顶元素;从一个栈删除元素又称作出栈或退栈,它是把栈顶元素删除掉,使其相...
2020-01-10
LeetCode | 0700. Search in a Binary Search Tree二叉搜索树中的搜索【Python】
LeetCode 0700. Search in a Binary Search Tree二叉搜索树中的搜索【Easy】【Python】【二叉树】
2020-06-28
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
keras EfficientNet介绍,在ImageNet任务上涨点明显
compared with resnet50, EfficientNet-B4 improves the top-1 accuracy from 76.3% of ResNet-50 to 82.6% (+6.3%), under similar FLOPS constraint.
2019-12-04
HTTP--http之腾讯云配置https(十)
腾讯云 域名解析 腾讯云 阿里云,因为域名是在阿里云买的 ] 下载到本地 上传到服务器 nginx配置 nginx.conf {代码...} /etc/nginx/conf.d/default.conf 默认 [链接] 重定向pengyongjie.top到[链接] {代码...} 重启nginx {代码...}
2018-11-21
docker compose中的两级networks作用
本博客目的:解释 docker compose 两个不同level 的 networks 作用,方便初学者。注: 本文讨论的 Compose file format >= 3.0
2022-03-14
如何分析 SAP Spartacus 路由问题之 CheckoutAuthGuard 单步调试
The standard Storefront is used which is generated by Spartacus Schematics.
2021-06-16
常用less函数
1,文本行数限制 {代码...} 1.1,使用 {代码...} 2,三角箭头 {代码...} 2.1,使用: {代码...} 3,媒体查询 {代码...} 3.1 使用 {代码...}
2022-10-28
每日一练(18):包含min函数的栈
title: 每日一练(18):包含min函数的栈categories:[剑指offer]tags:[每日一练]date: 2022/02/14每日一练(18):包含min函数的栈定义栈的数据结构,请在该类型中实现一个能够得到栈的最小元素的 min 函数在该栈中,调用 min、push 及 pop 的时间复杂度都是 O(1)。示例:MinStack minStack = new MinStack();minStack.pu...
2022-02-14