摘要:
Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and 阅读全文
posted @ 2020-04-28 22:04
Veritas_des_Liberty
阅读(174)
评论(0)
推荐(0)
摘要:
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th 阅读全文
posted @ 2020-04-28 17:05
Veritas_des_Liberty
阅读(153)
评论(0)
推荐(0)
摘要:
The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a 阅读全文
posted @ 2020-04-28 16:24
Veritas_des_Liberty
阅读(197)
评论(0)
推荐(0)
摘要:
The K−P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program t 阅读全文
posted @ 2020-04-28 15:42
Veritas_des_Liberty
阅读(195)
评论(0)
推荐(0)
摘要:
Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence { 0.1, 0.2, 0.3, 0.4 }, we 阅读全文
posted @ 2020-04-28 00:36
Veritas_des_Liberty
阅读(243)
评论(0)
推荐(0)

浙公网安备 33010602011771号