I’ve collected a number of web sites with lists of programming exercises, which I’m going through for practice.
In no particular order, these are… » [Expand post] [Permalink]
everything is an experiment
I’ve collected a number of web sites with lists of programming exercises, which I’m going through for practice.
In no particular order, these are… » [Expand post] [Permalink]
I happened upon this passage in a book called The Chinese Language: Its History and Current Usage by Daniel Kane, in a section on loanwords from Sanskrit:
In some words, only one part of the original has survived: the ní in 尼姑 nígū “Buddhist nun” is the last syllable of the Sanskrit bhikkini (sic)…
… » [Expand post] [Permalink]
No related posts.
This textbook was a gift from Dr. John Percy, professor of astronomy at the University of Toronto. I did some research on Be stars with Dr. Percy while I was in high school, and I had expressed to him my interest in studying astronomy and astrophysics in university.… » [Expand post] [Permalink]
No related posts.
The problem is to implement a function that outputs all possible permutations of the characters in a string. Unlike combinations, two permutations are considered distinct if they contain the same characters, but in a different order. Also, for the purposes of this exercise, each occurrence of a repeated character is considered to be a distinct character. That is, if the input is “aaa”, the output should be six repetitions of “aaa”. The permutations may be output in any order.
This exercise, like the previous one on combinations of a string, is from the book Programming Interviews Exposed by John Mongan and Noah Suojanen[1]\(\)… » [Expand post] [Permalink]
The problem is to implement a function that outputs all possible combinations of the characters in a string (with length ranging from one to the length of the string). Unlike permutations, two combinations are considered to be the same if they contain the same characters, but in a different order. Another way to define the problem is to find the power set of the characters of the string (excluding the empty set).
Like the previous exercise, this one is also from the book Programming Interviews Exposed by John Mongan and Noah Suojanen[1]\(\)… » [Expand post] [Permalink]