Daily IT quiz
Tuesday, May 28, 2013
Monday, May 27, 2013
Average storage
Write a simple program that reads integer numbers and prints average value of all read numbers after each reading. Use as little memory as possible.
Sunday, May 26, 2013
Saturday, May 25, 2013
Strange javascript
alerter = function(x) {
alert(x);
}
(function() {
alerter("Test")
})()
The problem is, "Test" will never be printed. What's wrong?
Friday, May 24, 2013
chmod -x /bin/chmod
$ sudo chmod -x /bin/chmod
$ sudo chmod +x /bin/chmod
sudo: chmod: command not found
Err. What should I do now?
Thursday, May 23, 2013
Round
Let's define
r(x), (x > 0)
like the number of the the least non-zero position in the decimal number, i. e.
r(12.1) = -1
r(2) = 0
r(12) = 0
r(10) = 1
etc.
Given,
b > a > 0
, find all numbers in (a,b) where r() has its maxima .
(The point of the problem is to find "most rounded" numbers between
a
and b
).
Subscribe to:
Posts (Atom)