码迷,mamicode.com
首页 >  
搜索关键字:example    ( 17798个结果)
2.13日自学成果
今天继续研究了一下制作了一个简易小相册 代码附上 mainActivity.java package com.example.xiangce; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; imp ...
分类:其他好文   时间:2020-02-13 15:03:23    阅读次数:76
leetcode 234. Palindrome Linked List
题目内容 Given a singly linked list, determine if it is a palindrome. Example: 分析过程 题目归类: 链表反转,fast/slow双指针法 题目分析: 这道题归到easy其实是不对的,应该归到medium,因为如果要考虑O(n)时 ...
分类:其他好文   时间:2020-02-13 15:00:47    阅读次数:64
Educational Codeforces Round 82 A. Erasing Zeroes
You are given a string ss. Each character is either 0 or 1. You want all 1's in the string to form a contiguous subsegment. For example, if the string ...
分类:其他好文   时间:2020-02-13 13:12:48    阅读次数:61
SourceTree 配置 GitLab
生成SSH 创建SSH,执行ssh-keygen -t rsa -C "youremail@example.com",会在.ssh目录下生成id_rsa、id_rsa.pub两个私钥和公钥。 image.png 有个路径需要填写 直接复制箭头部分就可以 通过cat ~/.ssh/id_rsa.pub ...
分类:其他好文   时间:2020-02-13 13:00:03    阅读次数:72
Spring boot中controller控制界面跳转
项目结构: 控制类:IndexController package com.example.meeting.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bin ...
分类:编程语言   时间:2020-02-13 12:44:28    阅读次数:73
linux 按日期循环执行shell命令 补充历史数据
创建 一个 shell 文件 looprtask.sh 添加内容 如下: EXPORT_START_DATE=$1EXPORT_END_DATE=$2 #parameter example#EXPORT_START_DATE=2019-01-01 #EXPORT_END_DATE=2019-01-0 ...
分类:系统相关   时间:2020-02-13 12:32:32    阅读次数:124
[LeetCode] 70. Climbing Stairs
爬楼梯。题意是给一个数字n代表楼梯的高度,你可以每次爬一步或者两步,求有多少种不同的爬法。例子, Example 1: Input: 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step ...
分类:其他好文   时间:2020-02-13 09:56:32    阅读次数:70
1344. Angle Between Hands of a Clock
Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Input: ho ...
分类:其他好文   时间:2020-02-13 09:30:42    阅读次数:57
request与response
request 当一个页面被请求时,Django就会创建一个包含本次请求原信息的HttpRequest对象。Django会将这个对象自动传递给响应的视图函数,一般视图函数约定俗成地使用 request 参数承接这个对象。 常用值 request.method # 请求方法 GET POST,八种请求 ...
分类:其他好文   时间:2020-02-13 09:27:43    阅读次数:71
[LeetCode] 134. Gas Station
加油站。题意是给一个长度为N的环,用数组表示。环上的每一个点都有两个值,一个是当前加油站的油量,一个是开到下一个加油站的耗油量。请找到一个起点能够保证车开完一圈,返回起点的坐标;若找不到这个起点则返回-1。例子, Example 1: Input: gas = [1,2,3,4,5] cost = ...
分类:其他好文   时间:2020-02-13 09:25:56    阅读次数:59
共17798条   上一页 1 ... 97 98 99 100 101 ... 1780 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!