- 博客(5)
- 收藏
- 关注
原创 leetcode 第二题 两数相加 java
class Solution { public ListNode addTwoNumbers(ListNode l1, ListNode l2) { ListNode list=new ListNode(0); ListNode current=list; int x=0;int y=0; int h=0; int r=0...
2018-07-02 21:45:14 386
原创 【出错未完成】leetcode 第十五题 三数之和 python
class Solution: def threeSum(self, nums): dir={} r=[] r2=[] for k in range(0,len(nums)): dir[k]=nums[k] new_dir = {v : k for k, v in dir.items()} ...
2018-07-02 19:04:32 419
原创 Leet code 第一题 两数之和 JAVA python
一开始用了两个For 循环写的,看了官方的解决方案发现复杂度太高,时间复杂度为O(N2)。然后发现用Hashmap更加简单一点:class Solution { public int[] twoSum(int[] nums, int target) { Map<Integer,Integer> map=new HashMap<>(); fo...
2018-07-02 15:14:47 907
原创 啦啦啦 开始用HBuilder啦
Hello World<!DOCTYPE html><html> <head> <title>hello hbuilder</title> <script type="text/JavaScript"> function helloworld(){ } </scri
2018-06-29 18:14:53 339
原创 mysql批量输入
数据库名为test,内有字段A,B,C,D,批量插入100条数据,字段A为a1、a2、a3....a100,字段B为b1,b2,b3....b100,字段C、D内容不变。使用循环语句:create procedure InsertTest()begindeclare i int;declare s varchar(20);set i=1;while i<=100 dobeginselect ...
2018-06-29 18:11:07 271
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人