From 24b8ab29aad9159d1eb285f72a0557c2daea4b11 Mon Sep 17 00:00:00 2001 From: Haidong Ji Date: Tue, 7 Aug 2018 15:03:52 -0500 Subject: Made FastScanner a static class member instead of an independent class. Appear to consume a bit of more memory.--- .../sources/MaxPairProduct.java | 51 +++++++++++----------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/AlgoDesignAndTechniqueEdxJava/sources/MaxPairProduct.java b/AlgoDesignAndTechniqueEdxJava/sources/MaxPairProduct.java index dbe4ee6..fc7028c 100644 --- a/AlgoDesignAndTechniqueEdxJava/sources/MaxPairProduct.java +++ b/AlgoDesignAndTechniqueEdxJava/sources/MaxPairProduct.java @@ -16,13 +16,13 @@ public class MaxPairProduct { public static void main(String[] args) { FastScanner s = new FastScanner(System.in); - + int n = s.nextInt(); MaxPairProduct mpp = new MaxPairProduct(n); - for (int i = 0; i