Hofstadter Q sequence
The Hofstadter G sequence is defined as follows:
The first elements of the sequence are 1, 1, 2, 3, 3, 4, 5, 5, 6, 6.
Write ...
7 months 前
已解决
Maximizing Stock Profit
As a stock exchange broker focusing on a single transaction, your goal is to maximize profit by buying a stock at a low price an...
7 months 前
已解决
Compute the area of a lune
Write a function to compute the area of the shaded moon-shaped region in the figure below—that is, the area of a smaller circle ...
snake_case to CamelCase convention
The snake_case naming convention writes words in lowercase and separates them with underscores. In CamelCase convention, the fir...
7 months 前
已解决
CamelCase to snake_case convention
The CamelCase naming convention capitalizes the first letter of each word. In snake_case convention, words are written in lowerc...
7 months 前
已解决
Finding the Most Frequent Letter in a Text
You are given a text containing various English letters, digits and punctuation symbols. Your task is to find the most frequentl...
7 months 前
已解决
Spreadsheet Column Number
Spreadsheet uses an alphabetic naming system for columns, starting with 'A', 'B', 'C', etc. The column names continue like 'AB',...
7 months 前
已解决
Word Ladder
Given a set of words, and two other words - start and destination,
Find the smallest chain from start to the destination such...