在有序数组中查找元素的第一个和最后一个位置。题意很简单,给了一个数组和一个数字A,问数字A第一次和最后一次在数组中出现的位置在哪里,若没有,return -1。例子, Example 1: Input: nums = [5,7,7,8,8,10], target = 8 Output: [3,4] ...
分类:
其他好文 时间:
2019-11-04 13:19:04
阅读次数:
96
音量50% $("#volume").change(function(){ var volume = $(this).val(); $("#volumeLabel").text("x"+volume+"%"); }); var player = videojs('example-video... ...
分类:
Web程序 时间:
2019-11-04 13:12:47
阅读次数:
706
一、window 0. cd ~/.ssh ls来查看是否有文件id_rsa以及文件id_rsa.pub 1. 首先,如果你没有ssh key的话,在ternimal下输入命令:ssh-keygen -t rsa -C "youremail@example.com", youremail@examp ...
分类:
其他好文 时间:
2019-11-03 23:40:45
阅读次数:
342
链接: https://vjudge.net/problem/POJ 2689 题意: The branch of mathematics called number theory is about properties of numbers. One of the areas that has c ...
分类:
其他好文 时间:
2019-11-03 23:36:52
阅读次数:
94
题目描述: Given a linked list, swap every two adjacent nodes and return its head. For example,Given1->2->3->4, you should return the list as 2->1->4->3. Y ...
分类:
其他好文 时间:
2019-11-03 18:00:12
阅读次数:
78
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:
其他好文 时间:
2019-11-03 13:00:36
阅读次数:
90
一:组件案例发表评论 HTML代码如下: vue代码如下: ...
分类:
其他好文 时间:
2019-11-02 13:30:19
阅读次数:
166
题目描述 Barney was hanging out with Nora for a while and now he thinks he may have feelings for her. Barney wants to send her a cheesy text message and w ...
分类:
其他好文 时间:
2019-11-02 09:30:59
阅读次数:
87
题目描述: Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4-> ...
分类:
其他好文 时间:
2019-11-02 00:26:52
阅读次数:
75
Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3].... Example 1: Example 2: Note:You may assume all input has v ...
分类:
其他好文 时间:
2019-11-01 09:40:11
阅读次数:
64