lol there's a non-zero probability that I will disappear from PPCG for longer and longer periods of time next year and more so in the future but never forever (unless they delete my account again and don't give it back; then I'll just make an account, post an angry MSE post, and leave lol)
Description:
A non-integer representation of a number uses non-integer numbers as the bases of a positional numbering system.
e.g. Using the golden ratio (the irrational number 1 + √5/2 ≈ 1.61803399 symbolized by the Greek letter φ) as its base, the numbers 1 to 10 can be written:
Decimal Powe...
We are given array and two values x and y and we want to find number of subarrays that have frequency of x equal to frequency of y. After much work I have O(n) solution but is there more efficient way?
CMC: Given a list of positive integers, determine whether or not the number of fibonacci numbers in the list multiplied by the length of the list is a square number
Stream of Letters to Words
code-golf string natural-language
Given a string containing only letters (case-insensitive), split it into words of uniformly random lengths, using the distribution below, with the exception of the last word, which can be of any valid length (1-10). Your output is the...
@totallyhuman I personally like it, since it requires you do be able to do several different things, like count the bijection of two lists, and stuff like that
Let's say you have some text, and you want it to send it to your friend, but you don't want anyone else to read it. That probably means you want to encrypt it so that only you and your friend can read it. But, there is a problem: you and your friend forgot to agree on an encryption method, so i...
Challenge
Take a number and output it with 4 digits or less using letters and numbers. For example; 270,030 would turn into 270K.
Key
Billion -> B
Million -> M
Thousand -> K
Rules
You may choose to accept input numbers that include commas delimiting every three decimal places (such as 123...
Robert Heron Bork (March 1, 1927 – December 19, 2012) was an American judge and legal scholar who advocated the judicial philosophy of originalism. Bork served as a Yale Law School professor, President Nixon's Solicitor General, Acting Attorney General, and a judge of the United States Court of Appeals for the District of Columbia Circuit. It was during his tenure as Solicitor General that he obeyed Nixon's order to fire the Special Prosecutor Archibald Cox, who was investigating the Watergate break-in.
In 1987, President Ronald Reagan nominated him to the Supreme Court, but the U.S. Senate rejected...
I mean, technically, the previous version won't work, because I assumed only positive integers in the list, but your wording could have negatives or even non-integers.