上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页
摘要: Problem : A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elemen 阅读全文
posted @ 2020-04-12 12:54 littledy 阅读(96) 评论(0) 推荐(0)
摘要: Problem : Given a non empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The tim 阅读全文
posted @ 2020-04-12 11:07 littledy 阅读(76) 评论(0) 推荐(0)
摘要: Problem : Given two non negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 1. The length of both num1 and n 阅读全文
posted @ 2020-04-11 22:57 littledy 阅读(80) 评论(0) 推荐(0)
摘要: Problem : Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given targe 阅读全文
posted @ 2020-04-10 19:38 littledy 阅读(80) 评论(0) 推荐(0)
摘要: Problem : Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock wise, w 阅读全文
posted @ 2020-04-10 19:18 littledy 阅读(64) 评论(0) 推荐(0)
摘要: Problem : A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules: For 1 byte character, the first bit is a 0, followed by 阅读全文
posted @ 2020-04-09 17:44 littledy 阅读(92) 评论(0) 推荐(0)
摘要: Problem : Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brac 阅读全文
posted @ 2020-04-09 17:15 littledy 阅读(88) 评论(0) 推荐(0)
摘要: Problem : 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 阅读全文
posted @ 2020-04-09 12:42 littledy 阅读(184) 评论(0) 推荐(0)
摘要: Problem : Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true i 阅读全文
posted @ 2020-04-09 11:55 littledy 阅读(110) 评论(0) 推荐(0)
摘要: Problem : Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Fol 阅读全文
posted @ 2020-04-09 11:42 littledy 阅读(82) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页