你的世界我来过


  • 首页

  • 归档

  • 分类

  • 标签

  • 关于

  • 搜索

InterviewBit-Day4

发表于 2019-06-12 | 分类于 InterviewBit
| 字数统计 518 | 阅读时长 3

Sorting

Quick Sort

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
private static int[] quickSort(int[] A, int start, int end) {
if (start < end) {
int partitionIndex = partition(A, start, end);
quickSort(A, start, partitionIndex - 1);
quickSort(A, partitionIndx + 1, end);
}
}

private static int partition(int[] A, int start, int end) {
int pivot = A[end];
int partitionIndex = start;
for (int i = start; i < end; i++) {
if (A[i] < pivot) {
swap(A[i], A[partitionIndex]);
partitionIndex++;
}
}
swap(A[partitionIndex], A[end]);
return partitionIndex;
}
阅读全文 »

InterviewBit-Day3

发表于 2019-06-11 | 分类于 InterviewBit
| 字数统计 770 | 阅读时长 4

Sorting

Selection Sort

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
public class SelectionSort{
public static void main(String[] args) {
int[] A = {3, 4, 2, 5, 8, 1};
int[] B = selectionSort(A);
for (int b : B) {
System.out.print(b + " ");
}
}

private static int[] selectionSort(int[] A) {
int len = A.length;
for (int i = 0; i < len - 1; i++) {
int iMin = i;
for (int j = i + 1; j < len; j++) {
if (A[j] < A[iMin]) {
iMin = j;
}
}

int temp = A[i];
A[i] = A[iMin];
A[iMin] = temp;
}
return A;
}
}
阅读全文 »

每日一读-2019-06-04

发表于 2019-06-04 | 分类于 读书笔记
| 字数统计 604 | 阅读时长 2

演讲的技巧

在演讲中,难免会出现紧张的情况,甚至会出现错误,这时观众是不会太过于注意的,没有自己想想中的那么严重,需要的是继续进行下去,常用句型:

  • 这里有些小问题,不过不重要,我们来看下一个话题。
  • 没关系(这个小错误并没有太大的影响),我们继续

内向者的演讲者应该学会把握自身的优势,塑造好的形象。

阅读全文 »

InterviewBit-Day2

发表于 2019-06-04 | 分类于 InterviewBit
| 字数统计 16 | 阅读时长 1

Arrays

Introduction To Pointers In C/C++

1
2
&  --> 地址的值
* --> 取值
阅读全文 »

InterviewBit-Day1

发表于 2019-06-03 | 分类于 InterviewBit
| 字数统计 61 | 阅读时长 1

Time Complexity Of A Computer Program

  • “Whats the time complexity of the solution ?”
  • “Can you improve the time complexity of your solution ?”

时间复杂度,选择最差的

阅读全文 »

收藏

发表于 2019-05-31
| 字数统计 105 | 阅读时长 1

2019-05-31

https://github.com/Janche/springboot-security-project

https://blog.csdn.net/qq_34997906/article/details/89600076

https://github.com/Janche/springboot-security-project

https://github.com/dzinot/spring-boot-2-oauth2-authorization-jwt

阅读全文 »

Oauth2 介绍

发表于 2019-05-31 | 分类于 Oauth2
| 字数统计 2.3k | 阅读时长 14

An OAuth 2.0 introduction for beginners

This article doesn’t want to be the final guide to OAuth 2, but an introduction to the flows that this framework is composed of. You’ll have a look at the four basic flows and some practical scenarios, to understand the involved actors and the detailed behaviors. The goal is to be able to choose a flow that best fits your needs.

Which Oauth 2 flow should you choose?

阅读全文 »

每日一读-2019-05-31

发表于 2019-05-31 | 分类于 读书笔记
| 字数统计 160 | 阅读时长 1

谈判的本质就是交换

谈判第一步收集信息,生活中更多的是小谈判,比如:写一篇文章多少钱、演讲一次多少钱、讨论这个事情要花费多少时间等等,这些谈判中收集信息就用旁敲侧击的方式,三种常见问句:

1、您是怎么知道我们的?

2、在这方面,你们之前做过的最大的单子是多少?

3、按照这样的条件,我给您推荐别人好不好?

这几种只适用于小型谈判,面对大型谈判,需要在之前做充足的准备。

阅读全文 »

Hexo写带图片的文章

发表于 2019-05-29 | 分类于 Hexo教程
| 字数统计 114 | 阅读时长 1

1、修改主配置文件 _config.yml 中的 post_asset_folder 为 true

2、在 Hexo 目录下安装本地文件上传插件:npm install hexo-asset-image --save

3、创建一篇文章 hexo n "test001",这时在 source/_posts 中会生成一个 test001.md 文件和一个同名的 test001 文件夹

阅读全文 »

第八章-第五节-总结

发表于 2019-05-28 | 分类于 Go教程
| 字数统计 167 | 阅读时长 1

总结

在本章中,我们了解了您的服务可能会对入侵者造成的一些攻击。我们希望能够介绍加密的工作原理,以及我们如何利用 Go 的标准软件包来实现加密,以确保我们的服务安全。几乎没有什么可以完全保护自己免受坚定的攻击者的攻击;但是,使用本章中描述的简单技术应该构成您的标准工作实践。实施许多这些技术不会在很大程度上减缓您的开发周期;但是,它会给你一个保证你系统安全的优势。

阅读全文 »
123
PotoYang

PotoYang

24 日志
8 分类
10 标签
GitHub E-Mail
© 2019 PotoYang
Powered by Hexo
Theme - NexT.Pisces
0%