![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ARTS
筱筱世家
这个作者很懒,什么都没留下…
展开
-
耗子叔ARTS:第一周
Algorithm:JAVA:class Solution { public int[] twoSum(int[] nums, int target) { List<Integer> list = new ArrayList<>(); for (int i = 0; i < nums.length; i++)...原创 2019-04-14 16:52:26 · 203 阅读 · 0 评论 -
耗子叔ARTS:第十二周
耗子叔ARTS:第十二周Algorithm:/*** 397. Integer ReplacementMedium214243FavoriteShareGiven a positive integer n and you can do operations as follow:If n is even, repla...原创 2019-07-01 19:13:27 · 1774 阅读 · 0 评论 -
耗子叔ARTS:第十五周
耗子叔ARTS:第十五周Algorithm:/** * 283. Move Zeroes * Easy * <p> * 2170 * <p> * 79 * <p> ...原创 2019-07-29 08:01:53 · 273 阅读 · 0 评论 -
耗子叔ARTS:第十七周
Algorithm:/** * 20. Valid Parentheses * Easy * <p> * 3237 * <p> * 153 * <p> * Favorite * <p> * Share * Given a string containing just the characters '(', ')', '{'...原创 2019-08-18 22:21:42 · 916 阅读 · 0 评论 -
耗子叔ARTS:第十六周
耗子叔ARTS:第十六周Algorithm:/** * 283. Move Zeroes * Easy * <p> * 2170 * <p> * 79 * <p> ...原创 2019-08-11 22:56:31 · 951 阅读 · 0 评论 -
耗子叔ARTS:第十八周
Algorithm:/** * 3. Longest Substring Without Repeating Characters * Given a string, find the length of the longest substring without repeating characters. * Example 1: * <p> * Input: "ab...原创 2019-08-27 10:53:32 · 152 阅读 · 0 评论 -
耗子叔ARTS:第十九周
Algorithm:/** * 3. Longest Substring Without Repeating Characters * Given a string, find the length of the longest substring without repeating characters. * Example 1: * <p> * Input: "ab...原创 2019-09-03 16:02:56 · 172 阅读 · 0 评论 -
如何判断单向链表有环
有一个单向链表,链表中可能出现“环”,那么,如何用程序来判断该链表是否为有环链表呢?/** * @Author: subd * @Date: 2019/9/4 7:02 */public class SingleLinkNode { /** * 链表节点 */ private static class Node { int data...原创 2019-09-04 07:12:43 · 392 阅读 · 0 评论 -
耗子叔ARTS:第二十周
Algorithm:/** * 7. Reverse Integer * Given a 32-bit signed integer, reverse digits of an integer. * <p> * Example 1: * <p> * Input: 123 * Output: 321 * Example 2: * <p> ...原创 2019-09-05 17:57:29 · 207 阅读 · 0 评论 -
耗子叔ARTS:第十一周
耗子叔ARTS:第十一周Algorithm:/*** 给定字符串J代表石头中宝石的类型,和字符串S代表你拥有的石头。S中每个字符代表了一种你拥有的石头的类型,你想知道你拥有的石头中有多少是宝石。* <p>* J中...原创 2019-06-22 18:42:01 · 369 阅读 · 0 评论 -
耗子叔ARTS:第十周
Algorithm:7.给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。示例1:输入: 123输出: 321示例 2:输入: -123输出: -321示例 3:输入: 120输出: 21注意:假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为[−231,231− 1]。请根据这个假设,如果反转后整数溢出那么就返回...原创 2019-06-15 11:58:52 · 213 阅读 · 0 评论 -
耗子叔ARTS:第三周
Algorithm:/*** 804. Unique Morse Code Words* Easy* <p>* 404* <p>* 316* <p>* Favorite* <p>* Share* International Morse Code defines a stan...原创 2019-04-24 10:53:19 · 200 阅读 · 0 评论 -
耗子叔ARTS:第四周
Algorithm:/*** 914. X of a Kind in a Deck of Cards* Easy* <p>* 199* <p>* 39* <p>* Favorite* <p>* Share* In a deck of cards, each card has...原创 2019-04-29 12:26:10 · 367 阅读 · 0 评论 -
耗子叔ARTS:第二周
Algorithm:/*** 1021. Remove Outermost Parentheses* Easy* <p>* 53* <p>* 42* <p>* Favorite* <p>* Share* A valid parentheses string is either e...原创 2019-04-20 16:29:54 · 180 阅读 · 0 评论 -
耗子叔ARTS:第五周
耗子叔ARTS:第五周Algorithm:/*** 206. Reverse Linked List* Easy* <p>* 2220* <p>* 61* <p>* Favorite* <p>* Share* Reverse a singly linked list....原创 2019-05-09 14:30:50 · 508 阅读 · 0 评论 -
耗子叔ARTS:第六周
Algorithm:/*** 141. Linked List CycleEasy1502159FavoriteShareGiven a linked list, determine if it has a cycle in it.To represent a cycle in the given linked ...原创 2019-05-14 19:47:34 · 489 阅读 · 0 评论 -
耗子叔ARTS:第七周
Algorithm:/*** 142. Linked List Cycle II* Medium* <p>* 1376* <p>* 99* <p>* Favorite* <p>* Share* Given a linked list, return the node whe...原创 2019-05-21 13:56:48 · 383 阅读 · 0 评论 -
耗子叔ARTS:第八周
Algorithm:/*** 21. Merge Two Sorted ListsEasy2190310FavoriteShareMerge two sorted linked lists and return it as a new list. The new list should be made by splicin...原创 2019-05-27 16:55:20 · 431 阅读 · 0 评论 -
耗子叔ARTS:第九周
Algorithm:/*** 19. Remove Nth Node From End of ListMedium1781134FavoriteShareGiven a linked list, remove the n-th node from the end of list and return its head....原创 2019-06-03 09:49:08 · 475 阅读 · 0 评论 -
耗子叔ARTS:第二十一周
Algorithm:/** * @Author: subd * @Date: 2019/9/15 11:15 * 9. Palindrome Number */public class Palindrome { /** * 9. Palindrome Number * Determine whether an integer is a palindrom...原创 2019-09-15 12:04:05 · 986 阅读 · 0 评论