Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
In how many different ways can a cube be painted by using three different colors of paint?
The answer of this is 45,
What if I change cube to cuboid?
Thanks!
I am preparing for job interview and this question is from CareeCup.
First, you should know how 45 is derived. That is by the use of permutation and combination.
Since a cuboid has the same number of sides as a cube, they should have the same answer. So the answer is 45.
But it is important to learn how the 45 is derived.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Cleveland suggests charts' aspect ratios 'bank to 45 degrees'. How do I do calculate the optimal aspect ratio and apply it using ggplot?
A reference on the concept: https://eagereyes.org/basics/banking-45-degrees
You can use bank_slopes from the ggthemes package. Here's the documentation.
Also worth reading: a discussion of how well this principle holds up.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've never seen this notation for complexity: Õ(n).
It comes up in the context of learning in stochastic algorithms.
Anyone know this notation? You can't exactly google this...
EDIT: SOLVED
I think people have pointed out the right answer below. In my case Õ() is used to hide an exponential growth of a tree.
It is shorthand for O(g(n) log^k g(n))
Actually, you can google this!
It is a variant of big-O that ignores logarithmic factors. See this wikipedia entry, which I found simply by googling that character and looking at the top entry.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am learning binary division following the step-by-step procedure. I am stuck at Step One Repeat One in the remainder section. To get the remainder, the formula is Remainder = Remainder - Divisor.
How do we get to remainder: 11100110? I just don't understand how we have 1110 on the left half of the register. Any guides or help would greatly be appreciated!
Thanks:
The example is 10/5 using an 8 bit ALU.
I have attached a picture of the example for reference
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I need to find limit sqrt((3x-1)/(x+2)) when x->infinity
Can anyone help me please?
The answer is sqrt(3):
As x gets very very big, the degree 0 terms (-1x^0 and 2x^0) grow insignificant thus leaving:
sqrt(3x/x)
As you can see this reduces to:
sqrt(3)
And this is no longer affected by x and is, then, the answer.
Note
Math questions are best suited on Stack Exchange's Math page.
mjgpy3 deserves credit for his correct and elegant explanation.
But I'll offer you Wolfram Alpha as a way to answer these for yourself without having to ask here:
http://www.wolframalpha.com/input/?i=limit%20%20sqrt((3x-1)%2F(x%2B2))%20%20as%20x-%3Einfinity
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
I know it's not programming question but I thought we could all use the challenge :)
Link to diagram
Point A is the source of a laser. It is shinned at a single mirror and then reflected to another mirror finally arriving at point B ... see picture.
The goal is to find the total distance of all the lines.
I am not a student and this is not homework.
Same as a straight line from (-x, y) to (a, -b).
sqrt((a+x)^2 + (b+y)^2)