Tag Archives: java
The problem Under Ubuntu the Eclipse tooltip (the one that shows up when you hover over a function or variables) has an anoying black background color. This is due to the fact that Eclipse takes the default background color from … Continue reading
Preparation This problem needs some module arithmetic concepts before we can give a solution.
The problem is actually so simple that a brute force approach is possible:
The problem can be solved using linear algebra. However there’s also a brute force method which is usable for a board with a maximum of 18 columns. Here I’ll describe the brute force approach.
Acknowledgements So this problem seems suite simple. After some thinking I came up with the idea that C(n,k)*(n-k-1)! would give me the number of combinations with exactly k correct wines out of n glasses. Infact C(n,k) is the number of … Continue reading
This problem seems simple. Just store the words in an array of strings and sort them:
At first this problem puzzled me because the example: x.x.x.x.x x…x.x x…x.x.x x.x…x x.x.x.x.x G ‘x’ indicates a peg, ‘.’ indicates empty space. For me gave a solution of 0.63.
This problem seems to have an obvious solution:
As Agent Bob points out in this post importing an SSH key in to a Java keystore isn’t as painless as it should be. So just download ImportKey.java.