摘要: Encodings - URL encode Your task is to decode the following: %59%69%70%70%65%68%21%20%59%6F%75%72%20%55%52%4C%20%69%73%20%63%68%61%6C%6C%65%6E%67%65%2 阅读全文
posted @ 2022-08-30 16:41 rocksolid 阅读(50) 评论(0) 推荐(0) 编辑
摘要: Crypto - Caesar I As on most challenge sites, there are some beginner cryptos, and often you get started with the good old caesar cipher. I welcome yo 阅读全文
posted @ 2022-08-30 16:35 rocksolid 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 219. Contains Duplicate II 219. Contains Duplicate II Given an array of integers and an integer k, find out whether there are two distinct indices i a 阅读全文
posted @ 2017-01-21 23:39 rocksolid 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 阅读全文
posted @ 2017-01-17 14:36 rocksolid 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 阅读全文
posted @ 2017-01-17 13:28 rocksolid 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element i 阅读全文
posted @ 2017-01-16 16:09 rocksolid 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the 阅读全文
posted @ 2017-01-16 12:41 rocksolid 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-01-16 10:43 rocksolid 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return 阅读全文
posted @ 2017-01-12 16:51 rocksolid 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorithm s 阅读全文
posted @ 2017-01-12 15:55 rocksolid 阅读(109) 评论(0) 推荐(0) 编辑