Pages
(Move to ...)
Home
Info
HowTo
Code
Publications
Finance
Links
Legal
▼
13/10/2021
[Java] Kerberos login and retrieve GSSCredentials from KerberosTicket
›
A scenario that popped up recently was to login a user via Java code to Kerberos and retrieve a GSSCredential object containing the Kerberos...
11/10/2021
[Java] Calculate the angle between clock hands
›
return null; Unless it's an analog clock, in which case: The hour hand makes a 360 degree turn every 12 hours or 12*60 = 720 minutes, th...
[Java] Distribute items in K buckets
›
Something simple which comes up often when problems require some sort of item distribution. Given an amount of items N and K buckets, distri...
[Java] Number of trailing zeroes in factorial
›
Given a number N, return the amount of trailing zeroes in its factorial. Example: 4! = 24, no trailing zeroes 10! = 3628800, two trailing ze...
02/10/2021
[Java] Generate the K-th number made only of primes 3, 5, 7
›
Generate the K-th number made only of primes 3, 5, 7. Expected results up to K = 15: 1, 3, 5, 7, 9, 15, 21, 25, 27, 35, 45, 49, 63, 75, 81 T...
30/09/2021
[Java] Partition array in K subsets of equal sum
›
Given an array of positive integers and a target K, determine whether it's possible to partition the array in K subsets of equal sum. Ex...
26/09/2021
[Unity] Fury Farm
›
A sample 3D shooter game made with Unity. Get the code from the repo or play online . The animals have gone mad, defend your farm from thei...
‹
›
Home
View web version