摘要:
题目如下: Write a program to find the n-th ugly number. Ugly numbers are positive integers which are divisible by a or b or c. Example 1: Example 2: Examp 阅读全文
posted @ 2019-09-25 10:36
seyjs
阅读(558)
评论(0)
推荐(0)
摘要:
题目如下: You are given a string s, and an array of pairs of indices in the string pairs where pairs[i] = [a, b] indicates 2 indices(0-indexed) of the str 阅读全文
posted @ 2019-09-25 10:25
seyjs
阅读(1015)
评论(0)
推荐(0)
摘要:
题目如下: Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements. Return a list of p 阅读全文
posted @ 2019-09-25 10:16
seyjs
阅读(447)
评论(0)
推荐(0)
摘要:
题目如下: Sort a linked list using insertion sort. A graphical example of insertion sort. The partial sorted list (black) initially contains only the firs 阅读全文
posted @ 2019-09-25 10:14
seyjs
阅读(208)
评论(0)
推荐(0)