自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 DM8与Oracle关于模式、用户等概念的分析

谈一谈达梦数据和Oracle的一些区别吧区别1Oracle:DBA用户口令问题Oracle里面的用户只要在本地用户DBA组,都可以DBA本地身份登录数据库;DM:的DBA用户登录本地服务器身份登录必须带密码,在忘记密码情况下无法登录数据库;区别2数据库状态Oracle:nomount 加载Pfile或者SPfile,mount 加载控制文件,open 打开数据库;DM:mount可维护控制文件,open同上,suspend 限制磁盘写入,触发REDO日志,用户将挂起;关于状态切换,

2021-03-26 18:22:01 495 1

原创 Leetcode: Find the Difference

Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then add one more letter at a random position.Find the letter that was

2017-06-26 16:12:16 142

原创 学习 ITEM2VEC: NEURAL ITEM EMBEDDING FOR COLLABORATIVE FILTERING

1 学习什么是Word2vec1)词向量One-hot RepresentationDistributed Representationhttp://licstar.net/archives/3282)logistics回归https://en.wikipedia.org/wiki/Logistic_function3)softmax函数https:

2017-06-21 14:59:59 282

原创 Lintcode:Merge Sorted list系列

Merge Two Sorted Lists Merge two sorted (ascending) linked lists and return it as a new sorted list. The new sorted list should be made by splicing together the nodes of the two list

2017-05-09 19:57:44 75

转载 Lintcode: 尾部的零

尾部的零 设计一个算法,计算出n阶乘中尾部零的个数您在真实的面试中是否遇到过这个题? Yes样例11! = 39916800,因此应该返回 2class Solution { /* * param n: As desciption * return: An int

2017-05-09 16:43:50 149

原创 Leetcode: Summary Ranges

Given a sorted integer array without duplicates, return the summary of its ranges.For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"].public class Solution { public List sum

2017-03-01 22:06:04 113

转载 字符串分割--java中String.split()用法

在java.lang包中有String.split()方法,返回是一个数组。  1、“.”和“|”都是转义字符,必须得加"\\";  如果用“.”作为分隔的话,必须是如下写法:String.split("\\."),这样才能正确的分隔开,不能用String.split(".");如果用“|”作为分隔的话,必须是如下写法:String.split("\\|"),这样才能正确的分隔

2017-02-27 21:59:37 168

原创 剑指offer:旋转数组的最小数字

题目描述把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。输入一个非递减排序的数组的一个旋转,输出旋转数组的最小元素。例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转,该数组的最小值为1。NOTE:给出的所有元素都大于0,若数组大小为0,请返回0。思路剑指Offer中有这道题目的分析。这是一道二分查找的变形的题目。

2016-09-13 15:01:33 122

原创 LeetCode:Reverse Linked List

Reverse a singly linked list.思路:注意几个地方:变换前:   h  ---->    i   ---->    j变换后:   h  1 以i节点为当前节点。假设i节点前面的节点都实现了逆转。现在已i节点为参考对象。注意需要用一个新定义的ListNode去记录下i的下一个节点j。因为如果单纯的将j的下一节点指向h,会导致i , j 之间断裂

2016-09-05 10:22:13 126

原创 Remove Duplicates from Sorted List

Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, return 1->2->3.Subscribe to see wh

2016-09-01 16:30:53 168

原创 Leetcode:Find the Difference

Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then add one more letter at a random position.Find the letter that was

2016-08-29 16:41:41 486

原创 leetcode:Contains Duplicate

217. Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should r

2016-06-28 17:00:35 154

原创 leetcode: Majority Element

169. Majority Element My SubmissionsQuestionEditorial SolutionTotal Accepted: 122095 Total Submissions: 289750 Difficulty: EasyGiven an array of size n, find the majority ele

2016-06-23 15:01:05 291

原创 leetcode: Excel Sheet Column Title

168. Excel Sheet Column Title My SubmissionsQuestionEditorial SolutionTotal Accepted: 63607 Total Submissions: 286742 Difficulty: EasyGiven a positive integer, return its cor

2016-06-12 12:29:48 203

原创 leetcode: Same Tree

100. Same Tree My SubmissionsQuestionEditorial SolutionTotal Accepted: 133548 Total Submissions: 306562 Difficulty: EasyGiven two binary trees, write a function to check if t

2016-06-12 10:25:05 255

原创 leetcode: Same Tree

100. Same Tree My SubmissionsQuestionEditorial SolutionTotal Accepted: 133548 Total Submissions: 306562 Difficulty: EasyGiven two binary trees, write a function to check if t

2016-06-12 09:31:41 51

原创 leetcode: Remove Linked List Elements

203. Remove Linked List Elements My SubmissionsQuestionEditorial SolutionTotal Accepted: 66759 Total Submissions: 229425 Difficulty: EasyRemove all elements from a linked lis

2016-06-11 17:46:46 225

原创 leetcode:Intersection of Two Arrays

349. Intersection of Two Arrays My SubmissionsQuestionEditorial SolutionTotal Accepted: 16575 Total Submissions: 36982 Difficulty: EasyGiven two arrays, write a function to c

2016-06-10 19:20:07 220

原创 leetcode:Move Zeroes

283. Move Zeroes My SubmissionsQuestionEditorial SolutionTotal Accepted: 87958 Total Submissions: 196336 Difficulty: EasyGiven an array nums, write a function to move all 0

2016-06-10 08:55:46 176

原创 leetcode: Maximum Depth of Binary Tree

104. Maximum Depth of Binary Tree My SubmissionsQuestionEditorial SolutionTotal Accepted: 149038 Total Submissions: 309044 Difficulty: EasyGiven a binary tree, find its maxim

2016-06-04 17:59:26 168

原创 leetcode: Add Digits

258. Add Digits My SubmissionsQuestionEditorial SolutionTotal Accepted: 98922 Total Submissions: 202805 Difficulty: EasyGiven a non-negative integer num, repeatedly add all

2016-06-03 14:42:47 236

原创 leetcode:Reverse String

344. Reverse String My SubmissionsQuestionEditorial SolutionTotal Accepted: 29346 Total Submissions: 50197 Difficulty: EasyWrite a function that takes a string as input and r

2016-05-31 14:41:58 190

原创 JAVA基础题目

A. 4321B. 0000C. An exception is thrown at runtime.D. Compilation fails because of an error in line 18.Answer: D解析;继承中的构造方法 1、子类的构造过程中必须调用其基类的构造方法。2、子类可以在自己的构造方法中使用super(argument_l

2016-02-16 17:42:09 48

原创 翻转一棵二叉树 + Java中queue的总结

翻转二叉树,使用Java版实现

2015-08-26 10:52:40 400

原创 SpringMvc与Struts2的区别

最新学习了SpringMvc,确实比ssh要容易上手许多。首先,springmvc的控制器要比struts的好一些。原因在于struts本身需要使用scope(单例多例模式)来限制对象;而springmvc则本身已经定义了为单例模式。所以不用担心线程冲突的问题。好比说:public class A{ private int m; public void disp(int a

2015-07-13 15:02:27 445

转载 @Repository、@Service 和 @Controller解释

Spring 2.5 中除了提供 @Component 注释外,还定义了几个拥有特殊语义的注释,它们分别是:@Repository、@Service 和 @Controller。在目前的 Spring 版本中,这 3 个注释和 @Component 是等效的,但是从注释类的命名上,很容易看出这 3 个注释分别和持久层、业务层和控制层(Web 层)相对应。虽然目前这 3 个注释和 @Componen

2015-07-11 16:54:59 307

空空如也

空空如也

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

TA关注的人

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