- 博客(6)
- 收藏
- 关注
原创 算法7_reverse_integer
1,问题 Given a 32-bit signed integer, reverse digits of an integer. Note: Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−2^31,...
2019-02-02 23:42:02
91
原创 算法4-Median of Two Sorted Arrays
1,问题描述与要求 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). You may assume ...
2019-01-27 10:48:11
129
原创 算法3 Longest substring
问题描述: 重点:1,longest substring 2, no repeating characters 解法一: class Solution { public int lengthOfLongestSubstring(String s) { Set<Character> substring=new HashSet(); in...
2019-01-21 12:22:04
296
2
原创 算法1,2
从2019年1月13日开始,争取每天学习一点算法知识,并且在CSDN上记录,以防自己偷懒,主要的学习材料是Algorithm 4th 和leetcode, 当然是从最基础的内容开始学习啦。 问题描述:两数之和问题,使用JAVA实现。 Given an array of integers, return indices of the two numbers such that they add ...
2019-01-13 22:49:16
163
原创 MAC上将java与sql的连接工具加载到eclipse中
首先是从网上下载最新的mysql-connector-java-5.1.46;然后在eclipse的左侧的界面上建立一个folder,folder的文件叫做lib;然后复制之前下载好的的Java-connector,在lib的右侧点击paste,将这个连接文件加载到lib文件夹中,然后再右击。让他们加入到referenced library 中,如果发现:那么就大功告成了。...
2018-04-14 16:12:28
521
1
原创 登录方法
1,登陆mysql的方法 直接输入: mysql -u root -p 系统会提示输入密码: 进入后输入show databases;来查看已经创建的数据库,记得一定要最后加分号。2,将JDBC导入Eclipse的方法: 1.右击要导入jar包的项目,点properties 2.左边选择java build path,右边选择libraries 3.选择add ...
2018-04-13 15:02:02
404
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人