- 博客(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
原创 二叉树遍历
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
原创 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
空空如也
java新手提问,为什么不能这样写?
2017-06-23
初学者提问:下面代码为什么会数组越界?
2017-05-04
TA创建的收藏夹 TA关注的收藏夹
TA关注的人