码迷,mamicode.com
首页 >  
搜索关键字:example    ( 17798个结果
Build a DNS server in Ubuntu 14.04
I want to test a device DNS feature, so I build a DNS server in my Ubuntu PC. In this example, I want to my device to send the report to report.com wh ...
分类:系统相关   时间:2020-03-04 12:46:27    阅读次数:87
[LeetCode] 994. Rotting Oranges
腐烂的橘子。题意是给一个二维数组,用几个数字分别表示橘子的腐烂情况。每过去一分钟,任何腐烂的橘子的上下左右四个方向上的新鲜橘子都会腐烂。请求出全部橘子腐烂需要的分钟数,如果不会全都腐烂,则返回-1。 0 代表空单元格; 1 代表新鲜橘子; 2 代表腐烂的橘子。 例子, Example 1: Inpu ...
分类:其他好文   时间:2020-03-04 12:39:45    阅读次数:63
[LeetCode] 232. Implement Queue using Stacks
用栈模拟队列。题干即是题意,用栈实现队列的几个函数,例子, Example: MyQueue queue = new MyQueue(); queue.push(1); queue.push(2); queue.peek(); // returns 1 queue.pop(); // returns ...
分类:其他好文   时间:2020-03-04 09:53:27    阅读次数:58
享元模式
1. 定义 享元模式 是池技术的重要实现方式,定义如下:使用共享对象可有效支持大量的细粒度的对象。 2. 类图 3. Example 偷个懒, https://www.jianshu.com/p/a2aa75939766 这里的火车票例子还是蛮不错的! 4. 使用场景 系统中存在大量的相似对象 需要 ...
分类:其他好文   时间:2020-03-04 00:18:17    阅读次数:56
求二叉树的路径和(path sum)
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.No... ...
分类:其他好文   时间:2020-03-03 14:34:22    阅读次数:94
LeetCode-232 Implement Queue using Stacks Solution (with Java)
1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-03-07 3 * Your MyQueue object will be instantiated and called ...
分类:编程语言   时间:2020-03-02 15:07:09    阅读次数:68
SpringBoot 结合 Spring Cache 操作 Redis 实现数据缓存
系统环境: Redis 版本:5.0.7 SpringBoot 版本:2.2.2.RELEASE 参考地址: Redus 官方网址:https://redis.io/ 博文示例项目 Github 地址:https://github.com/my-dlq/blog-example/tree/maste ...
分类:编程语言   时间:2020-03-02 10:33:44    阅读次数:94
Android Studio学习路程(12)
今天学习了一个控件:ListView package com.example.hp.listview.Activity; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android ...
分类:移动开发   时间:2020-03-02 01:13:22    阅读次数:99
LeetCode 206 链表 Reverse Linked List
LeetCode 206 链表 Reverse Linked ListReverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list c... ...
分类:其他好文   时间:2020-03-02 00:53:59    阅读次数:88
java多态实现示例
多态 多态存在的三个必要条件: 继承 , 重写 , 父类引用指向子类对象 , 当使用多态方式调用方法时,首先检查父类中是否有该方法,如果没有,则error;如果有,调用子类的同名方法。 example: 输出结果为100 多态的缺陷 "重写私有方法" 期望输出的是public f(),但是父类中的p ...
分类:编程语言   时间:2020-03-01 22:08:34    阅读次数:81
17798条   上一页 1 ... 87 88 89 90 91 ... 1780 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!