
数据结构
daisy_Hawen
身体和灵魂都需要奔跑 欢迎关注我的Githttps://github.com/daisyHawen
展开
-
LeetCode_461. Hamming Distance
/*The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x and y, calculate the Hamming distance.*/题目的意思是:找到x和y的二进制位中,不相同的原创 2017-08-21 10:44:56 · 455 阅读 · 0 评论 -
LeetCode_ 657. Judge Route Circle
题目: Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place.The move sequence is represented原创 2017-08-21 11:05:46 · 560 阅读 · 0 评论 -
js数据结构之链表
//定义节点 function ListNode(val) { this.val = val; this.next = null; }//定义链表 //链表中有头结点和一些方法 function LinkedList() { this.head = new ListNode('head'); this.find = find; this.insert = in原创 2017-08-14 11:06:00 · 1201 阅读 · 0 评论