Description Submission Calculate the distance between each space station, half is the max distance in between Special cases: the space stations in the beginning and […]
Chocolate Feast
Description Submission The implementation can be complicated without recursion After the first round, c is useless, so can be used to represent the number of […]
Day 23: BST Level-Order Traversal
Description Submission
Modified Kaprekar Numbers
Description Submission (0, 100,000) => (0, 10,000,000,000): should use long type from float to integer The length of an integer: trunc(log10(s)) + 1
Bigger is Greater
Description Submission Front behind to front, find the first pair of decreasing letters Find the number that is just bigger in the second part and […]