原文 Text 3 This year marks exactly two countries since the publication of Frankenstein; or, The Modern Prometheus, by Mary Shelley. Even before the inv ...
分类:
其他好文 时间:
2019-12-27 13:51:12
阅读次数:
836
题目: 思路:易得成立的条件为:$(a+b)\mod3==0$ && $max(a,b)\le min(a,b) 2$ ...
分类:
其他好文 时间:
2019-12-26 21:09:49
阅读次数:
87
mysql 遍历查询所有父级: SELECT T1._id groupID FROM ( SELECT @r AS _id, (SELECT @r := fbh FROM business_group WHERE bh = _id) AS fbh, @l := @l + 1 AS lvl FROM ...
分类:
数据库 时间:
2019-12-26 14:45:11
阅读次数:
506
#include <stdio.h>int main() { int *p1,*p2,*p,a,b; printf("please enter two integer numbers:"); scanf("%d,%d",&a,&b); // 输入两个整数 p1=&a; // 使p1指向变量a p2= ...
分类:
其他好文 时间:
2019-12-26 13:34:29
阅读次数:
972
#include<stdio.h>void main(){ int x[10],i; void sort(int array[10]); for(i=0;i<10;i++) scanf("%d,",x[i]); sort(x); printf("The sorted array:\n"); for( ...
分类:
编程语言 时间:
2019-12-26 13:32:49
阅读次数:
159
Problem Statement Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. Example: Assu ...
分类:
其他好文 时间:
2019-12-26 09:31:42
阅读次数:
87
Kotlin class Solution { fun twoSum(nums: IntArray, target: Int): IntArray { val v2i: MutableMap<Int,Int> = mutableMapOf() for((index, value) in nums.w ...
分类:
其他好文 时间:
2019-12-25 12:58:50
阅读次数:
62
//find greatest among two numbers import java.util.Scanner; public class Numbers { public static void main(String[] args) { int num1, num2; Scanner ip... ...
分类:
编程语言 时间:
2019-12-25 12:58:36
阅读次数:
364
链接:https://leetcode-cn.com/problems/search-in-rotated-sorted-array 假设按照升序排序的数组在预先未知的某个点上进行了旋转。 ( 例如,数组 [0,1,2,4,5,6,7] 可能变为 [4,5,6,7,0,1,2] )。 搜索一个给定的 ...
分类:
编程语言 时间:
2019-12-25 01:40:40
阅读次数:
81
Kotlin code: class Solution { fun twoSum(nums: IntArray, target: Int): IntArray { val v2i: MutableMap<Int,Int> = mutableMapOf() for((index, value) in ...
分类:
其他好文 时间:
2019-12-25 01:40:11
阅读次数:
89