摘要:
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
阅读(89)
评论(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
阅读(185)
评论(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
阅读(111)
评论(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
阅读(84)
评论(0)
推荐(0)
摘要:
Problem : Given an integer n, return 1 n in lexicographical order. For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. Please optimize you 阅读全文
posted @ 2020-04-09 10:48
littledy
阅读(92)
评论(0)
推荐(0)
摘要:
Problem : Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note tha 阅读全文
posted @ 2020-04-09 10:27
littledy
阅读(98)
评论(0)
推荐(0)

浙公网安备 33010602011771号