找到约 10000 条结果
  • 354. Russian Doll Envelopes
    和300. Longest Increasing Subsequence类似的题,这里变成两个量了,依然是patient sort+binary search的思路。这里先按一个方向排序,另外一个方向按降序再排,这样就可以binary search了。
    2017-02-17
  • 实现 Trie (前缀树)
    {代码...}
    2021-01-21
  • Cirru 是怎样编译到 Clojure 的
    这篇文章解释一下 Cirru 到 Clojure 代码的编译步骤.目前编辑使用的是 Cumulo Editor, 参考这里的 Demo.Cirru 是整个大的项目的名字, Cirru 本身的目标是 AST 编程,而 Cumulo Editor 是目前项目下最新的语法树编辑器. 也就是 AST 里的 Syntax Tree.所以在新闻中你看到的 Cirru 的存在形态, 目前是这样的:
    2017-09-21
    1
  • 解讲WIA/WIB1002 DS
    WIA/WIB1002 DS Assignment (S2, 2020/21) ‘Always on Time’ Delivery1‘Always On Time’ DeliveryIntroductionYour friend’s delivery company ‘Never On Time Sdn Bhd’ is receiving tons of complaints fromcustomers as they feel that the delivery process is far too slow. Delivery men in your friend’scompany ...
    2021-06-10
  • 红黑树(未验证)
    {代码...}
    2021-06-28
  • ElasticSearch学习笔记 - 钢钢更新
    背景 本文总结ElasticSearch的一些常用命令和用法,会长期更新,希望对大家有所帮助。 常见操作 新建映射(mapping) {代码...} 新建文档(document) {代码...} 当前索引数据如下: 简单查询 查询记录(http方式) {代码...} 查询记录(curl方式) {代码...} 查询返回指定字段 {代码...} 查询特定范围(页数)的查询 以...
    2018-05-02
  • Find Peak Element
    这道题给了条件:nums[i] != nums[i+1],然后两端是负无穷。所以能用binary search做。因为只要知道当前点是递增的,只要往右边找肯定能找到peak,大不了到最后,因为nums[n-1]是永远小于当前点的。左边同理。
    2017-02-10
  • [LeetCode] 702. Search in a Sorted Array of Unknown Size
    Given an integer array sorted in ascending order, write a function to search target in nums. If target exists, then return its index, otherwise return -1. However, the array size is unknown to you. You may only access the array using an ArrayReader interface, where ArrayReader.get(k) returns the ...
    2018-12-14
  • 如何提取SAP UI5 XML view里定义的字段元素绑定信息(binding path)
    For some UI element, you could easily find its binding path in the corresponding xml view, for example we need to find out which json model field is the highlighted UI element below bound to:
    2020-09-08
  • 仲夏开源之夜演讲| FOSSG 联合发起人 max:解读人工智能和开源技术的最新热潮
    On 20 July 2023, Max Lorenz, a tech guru at AI startup and co-organizer FOSSG, participated in the keynote of this Midsummer Open Source Night, presenting his thoughts on AI and open source technologies. Here's what he said.
    2023-08-06
  • 控制台快捷键
    运行环境 MacBook Pro,OSX 10.12.4 快捷键 {代码...} {代码...} {代码...} {代码...} {代码...}
    2017-03-30
  • javaScript字符串去重
    方法一:set {代码...} 方法二:filter {代码...} 方法三:for {代码...} 方法四: search()方法 {代码...} 方法五: 对象属性 {代码...} 方法六:includes {代码...}
    2018-04-10
  • KMP算法Java实现
    {代码...}
    2022-02-11
  • Java High Level REST Client 使用地理位置查询
    一、需求在前一篇文章中,我们学会了geo_point的使用,此处使用地理位置查询并使用java语言实现一下。功能:1、实现查询、过滤。2、实现聚合。3、实现排序。4、实现后置过滤。二、对应的query语句 {代码...} 3、实现查询1、方式一-使用api {代码...} 2、方式二-之内传入json查询串 {代码...} 3、输出查询语句使用输出 Se...
    2021-04-24
  • HTML-Location摘抄_017
    Location 接口表示其链接到的对象的位置URL。所做的修改反映在与之相关的对象上。 Document 和 Window 接口都有这样一个链接的Location,分别通过 Document.location和Window.location 访问。
    2019-03-16
  • 极大提高国人开发效率超实用的 VS Code 插件
    相信好多英语不好的同学在打代码的时候,经常会遇到不懂的单词,也相信好多时候同学写项目时候忘记框架的接口,需要网上翻阅文档,线上提问求助,参考其他项目的示例,那么如果你都过遇到这类问题,那么相信这款 VS Code 插件能极大的帮助到你,它能让您在代码中进行线上/线下搜索,或者翻译的。
    2020-12-02
  • vim 的 grep 插件`Leaderf rg`:grep 和模糊匹配的完美结合
    起步比较早,早期后端grep工具是ack,后来也支持ag(the_silver_searcher),pt(the_platinum_searcher),rg(ripgrep)等工具了。它是一个比较传统的grep插件,不支持异步,要等到grep结束后才能显示结果,在大的项目中grep会卡好一阵子。它貌似也不再维护,我N久前提交的pull request还挂在那,它最近的代码更新在11个月前。
    2019-01-15