算法
文章平均质量分 70
micky_Kiko
本科非计算机相关专业的准码农!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode算法——258:Add Digits(基于JAVA)
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one原创 2016-08-10 23:15:26 · 526 阅读 · 0 评论 -
leetcode算法——136. Single Number(基于JAVA)
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using extra原创 2016-09-04 10:58:44 · 579 阅读 · 0 评论 -
leetcode算法——237. Delete Node in a Linked List(基于JAVA)
原题:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with原创 2016-09-06 15:50:51 · 458 阅读 · 0 评论 -
leetcode算法——389. Find the Difference(基于JAVA)
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 ad原创 2016-09-06 11:48:56 · 2220 阅读 · 0 评论
分享