自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 问答 (2)
  • 收藏
  • 关注

原创 最长重复字串

package Test;public class MaxString{ /** * find longest common sequence from two input string * @param s1 * @param s2 * @return length of longest common sequence */ ...

2018-10-16 11:30:58 133

原创 矩阵对角线相加

package Test;public class sumArrary { public static void main(String[] args) { int total=0; int[][] array={{1,2,3},{4,5,6},{7,8,9}}; for (int i...

2018-09-14 16:03:51 1821

原创 链表反转相加

package Test;public class listReverse { public static void main(String[] args){ listNode l1 = new listNode(1); listNode l2 = new listNode(2); listNode l3 =...

2018-09-14 16:02:15 371

原创 图搜索

public class MyGraph { public static void main(String[] args){ boolean[] bo = new boolean[7]; char[] node = {'A','B','C','D','E','F','G'}; int[][] arrary = {{0,1,0,0,0,0,0...

2018-09-14 15:59:38 150

原创 链表

反转链表: https://blog.csdn.net/guyuealian/article/details/51119499   

2018-08-09 15:30:42 67

原创 二叉树遍历

 1.左,中,右,层次遍历package BinaryTreeTraverseTest;import java.util.LinkedList;import java.util.Queue;/** * 二叉树的深度优先遍历和广度优先遍历 * @author Fantasy * @version 1.0 2016/10/05 - 2016/10/07 */public cl...

2018-07-26 15:36:54 112

原创 max-points-on-a-line

Given n points on a 2D plane, find the maximum number of points that lie on the same straight line./** * Definition for a point. * class Point { * int x; * int y; * Point() { x = 0...

2018-07-23 14:30:28 110

原创 Satck

* Evaluate the value of an arithmetic expression in Reverse Polish Notation.*Valid operators are+,-,*,/. Each operand may be an integer or another expression.*Some examples: * ["2", "1", "+", "...

2018-07-23 14:13:39 184

原创 minimum-depth-of-binary-tree(深度优先遍历,广度优先遍历)

import java.util.LinkedList;/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ /...

2018-07-23 13:30:17 221

原创 排序算法

冒泡:for(int i=0;i<arr.length-1;i++){//外层循环控制排序趟数      for(int j=0;j<arr.length-1-i;j++){//内层循环控制每一趟排序多少次        if(arr[j]>arr[j+1]){          int temp=arr[j];          arr[j]=arr[j+1]; ...

2018-07-13 16:56:15 105

转载 用anaconda安装最新的TensorFlow版本

用anaconda安装最新的TensorFlow版本存在问题: 一般从anaconda官网下载的anaconda,查看tensorflow依然还是1.2的版本,现在用conda更新TensorFlow解决方法: 1,打开anaconda-prompt2,查看tensorflow各个版本:(查看会发现有一大堆TensorFlow源,但是不能随便选,选择可以用查找命令定位)anaconda searc...

2018-07-10 13:59:55 1577

转载 Git

https://blog.csdn.net/wangrenbao123/article/details/55511461/http://www.admin10000.com/document/5374.html

2018-06-29 11:23:37 117

原创 Linux命令

1.Xshell实现Windows上传文件到Linux主机rz2.Linux 学习之创建、删除文件和文件夹命令mkdir

2018-06-29 10:56:46 103

原创 infrabox1.1

1.apt install python-pip2.设置环境变量3个环境变量exportINFRABOX_URL=https://infrabox.datahub.only.sap exportINFRABOX_CLI_TOKEN={token_generate_from_project_settings}exportINFRABOX_CA_BUNDLE={absolute_path_of_ca....

2018-06-29 10:51:03 276

原创 inforbox1.0

Here are the somedetails I tried about the infrabox.Preparation:1. Create SAP GitHub account using I-number, justmake sure your GitHub email match your own email2. Create an infrabox test project, her...

2018-06-29 10:35:41 455

转载 Java中private、protected、public和default的区别

public:具有最大的访问权限,可以访问任何一个在classpath下的类、接口、异常等。它往往用于对外的情况,也就是对象或类对外的一种接口的形式。protected:主要的作用就是用来保护子类的。它的含义在于子类可以用它修饰的成员,其他的不可以,它相当于传递给子类的一种继承的东西default:有时候也称为friendly,它是针对本包访问而设计的,任何处于本包下的类、接口

2017-09-04 15:18:08 152

转载 Final关键字

Java中的final关键字非常重要,它可以应用于类、方法以及变量。这篇文章中我将带你看看什么是final关键字?将变量,方法和类声明为final代表了什么?使用final的好处是什么?最后也有一些使用final关键字的实例。final经常和static一起使用来声明常量,你也会看到final是如何改善应用性能的。final关键字的含义?final在Java中是一个保留的关键字,可以声明成

2017-09-04 15:07:31 128

转载 使用for循环输出杨辉三角

2017-02-09 12:45:03 942

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除