Why does this code work on my local machine but not on Leetcode?
How to find the 'sizeof' (a pointer pointing to an array)?
Log of mounted/unmounted devices in Unix Shell script to delete directories older than n days Given n distinct objects, there are $n!$ permutations of the objects and $n!/n$ "circular permutations" of the objects (orientation of the circle matters, but there is no starting point, so $1234$ and $2341$ are the same, but $4321$ is different).  Given $n$ objects of $k$ types (where the objects within each type are indistinguishable), $r_i$ of the $i^{th}$ type, there are   \begin{equation*} \frac{n!}{r_1!r_2!\cdots r_k!} \end{equation*}  permutations.  How many circular permutations are there of such a set? "Year olds" or "year-olds" I am writing about some leadership stuff, and I am trying to say that I am leading the 14-15 year old boys. How do I correctly use year-olds as in, "I was the adviser to the 14-15 year-olds."  Thanks in advance Is $\frac{1}{\sqrt{2}}$ a fraction or not?   I just came across a Grade 8 student's class work where the teacher has given the above as an example to differentiate fractions from rational numbers. I think this is wrong fundamentally, as $\sqrt2$ is irrational while all fractions would be rational. Please advise. Thanks! How do I get my players to form a PC party without just forcing them to? I believe that it is generally a good thing that all the PCs travel together, as a "party". This way the GM has to manage one environment – not, say, five. The problem is how the GM can ensure such a relationship between the characters.  One simple and really great solution is to require the players to design their characters so that they know each other. This has the added advantage of cross-backstories – as the players try to adjust their stories to fit together, they get and create hooks for more narrative!  However, I am now experimenting with giving the players complete freedom at character creation and later meeting in-game. No luck so far.  It is not easy, as trusting someone with your life (what happens during combat) is not a trivial thing. Furthermore, people generally like others with the same behaviour/interests/skin colour. Fantasy is all about diversity – you do not character-generate a strong man with a sword, no, you generate a half-ogre with an axe never before seen!  How can the GM get players, with diverse characters who are strangers to each other, decide to have their PCs act as a coherent group. I absolutely want to avoid asking my players to just solve this through metagaming ("Hey Joe, think of a way to get together with those, I can't story-tell two separate groups at the same time!").  I'm not having the stereotypical problem where a bunch of PCs meet for the first time and are automatically so paranoid of strangers that they start trying to kill each other. My players have just created a bunch of characters who have their own legitimate interests, and are faithfully following those in completely different directions that don't result in a classic "party". I put the PCs in great peril together and everyone escaped by their own devices, but now I have to figure out get the guy who ran for the hills back together with the couple that entered the city. And, I want to do it by resorting only to reasonable in-game events, not out-of-game metagame suggestions. When I log into my web server via SSH I see the information:  88 packages can be updated. 80 updates are security updates   I tried apt-get update then apt-get upgrade but each time I log in I still see the message about updates. How do I install them? Can't log in using Firefox in Stack Overflow Coefficients change signs I have a dataset where there is a high degree of multicollinearity, with all variables correlating positively with each other and the dependent variable. However, on some of the models I run I get a couple of significant negative coefficients. Basically there are two coefficients that depending on what variables I include in the model, I can manipulate their signs.  My understanding is that if the variance-covariance matrix only contain positive values, then all coefficients should also be positive. Is this correct? Some questions might be asked on three different sites, each site needing three different answers. For example, a question about a text editor.  So perhaps there should be a way to link the questions on the three different sites. Adding a link manually in the questions is certainly possible, but perhaps a feature officially supporting this will be beneficial. Any complete group (that is, with trivial center and outer automorphism group) is isomorphic to its automorphism group. The inverse is not true, as the dihedral group of order 8 is isomorphic to its automorphism group but isn't complete.  Problem 15.29 in the Kourovka Notebook asks to find another exemple of a p-group, but I was wondering, is any other exemple known? Is there any other finite (or even infinite) group (not necessarily a p-group) which is isomorphic to its automorphism group but isn't complete? Can anyone tell me the name of these sentences? How do rich people guarantee the safety of their money, when savings exceed the FDIC limit? I am curious how a millionaire would guarantee the safety of his money, given that the FDIC only insures up to $250K of an individual's deposits at a bank.  If someone had $3 million that they wanted to put into the bank, would they have to open up 12 different bank accounts and deposit $250K into each one, so that all of his money is insured by the FDIC?  Or is there an easier way to guarantee the safety of all his money? sstatic.net SSL certificate is for an incorrect domain Minecraft Inventory Saving I am making an RPG map, and was wondering how to "save" the game.  If you die, you would revert back to a save that happens automatically or manually, and I was wondering how to have it so that you will have all the items you had then, and none of the items you got after you saved (so /gamerule keepInventory won't work).  The only way I can think of doing this is having this long, long, annoying set of command blocks to test for all the items in the game, and then have another 64 command blocks for each of those items, testing for the amount of the item. Make mouse left-handed and touchpad right-handed I see that I can configure mouse and touchpad all in one panel (Ubuntu 13.10, defaults, Gnome). Which is to some extend. Namely, I want to have the touchpad differently configured then the mouse and ...  When I have an (USB) mouse attached I use it normally left-handed. Therefore I switch the buttons to left-handed. But when I use the touchpad I feel little bit lost with that kind of configuration. Therefore I wanna have it right-handed.  Is there a way to achieve the following: when I plugin a mouse (respectively when it is detected) automatically switch to left-handed and when I unplug it, switch automatically to right-handed? Is a join optimized to a where clause at runtime? How to convert ISO 8601 date (string) to Date? What does E mean in 9.0122222900391E-5? Is there a systematic way to obtain all conserved quantities of a system?