Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/delibero.git

Removed debugging code...

Author Dave Jarvis <email>
Date 2014-09-18 13:37:48 GMT-0700
Commit 8b23e8e0b2b5a5cdbe44d3419bc0adf22949d0df
Parent 9608705
xml/Adjacency.java
-public class Adjacency {
- /**
- * Shifts the index for even numbers by 4.
- */
- public static long d( int n, int t ) {
- t = t + ((t-1)%2);
- return (long)((n-1)*Math.floor(t/2) % t)+1;
- }
-
- public static void main( String args[] ) {
- int t = 1;
- for( int i = 1; i <= t; i++ ) {
- System.out.printf( "%d\n", d(i, t) );
- //System.out.printf( "d(%02d) = %d\n", i, d(i, t) );
- }
- }
-}
-
Delta 0 lines added, 18 lines removed, 18-line decrease