From 6849efa946f6359845b3530d8f03893eb0212254 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 30 Oct 2020 00:49:00 +0700 Subject: [PATCH] Fixed a massive bugs, please redownload --- Week9/Assignment9/bin/ArrayUtility.class | Bin 1699 -> 1699 bytes Week9/Assignment9/bin/ArrayUtilityTest.class | Bin 3281 -> 3281 bytes Week9/Assignment9/src/ArrayUtility.java | 2 +- Week9/Assignment9/src/ArrayUtilityTest.java | 4 ++-- Week9/Assignment9/uneven.csv | 9 +++++++++ 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Week9/Assignment9/bin/ArrayUtility.class b/Week9/Assignment9/bin/ArrayUtility.class index aeab885f0efc97c05e9bf774c27fcf8eb92263b2..5d2cee3a39b89011fcc207b605cec42639fdadc2 100644 GIT binary patch delta 18 ZcmZ3?yO?)F5euuVbcQI)=5iJtCIB+(1fc)` delta 18 ZcmZ3?yO?)F5eus*i*$zU=5iJtCIB)%1fc)` diff --git a/Week9/Assignment9/bin/ArrayUtilityTest.class b/Week9/Assignment9/bin/ArrayUtilityTest.class index 10aaa1f7b29fd09b248fd6b0ab41ee8a35e7b3fd..d3e028f87b98f87200b8d60fde9f94375bd808fb 100644 GIT binary patch delta 844 zcmaiw!A=uV6o&sZ({?)TBu;<`6%-NBwkm}Rv?@h`f)o{z3dS_XOw0%+Ej8^Zsfi)+ z2_Sc6cngi%g(hxXu&gT+x5k}`kKnmuXvdYCne+YkoO|zgn~`Q@?~9^4`-hobLbzPN zXV;wk(^An1;RO0L^b(AjYSpT*IYmzE22SD>!C#X-gkZFg%f$+XoNPaBU;t+bzS?GG zhY*Nz9$VKjgtHok3Femd+)9+J?TtjfUUTfSfpdrw)XFp7O6*V%#l;>?3|zp7hKqzw zcc55FtW=BJPTr~77SALwDt^)sB}G$7ij2}l<6>1w(WJ{CnbTY?&=r@L)GnHGt9`Df z-Rc`x*TpY&mS)AMFO|&7+uty-h#aex?dpb2(A?|)HM=RzZt)uH#@2&a7O#D2S`lA; z({KCy@05N&RA>kwh%f*H#9s}^(anDyJ>s{P-HkNR{|18{vG+J1_cw6FW0C`Hz9d;| z^MvGJn^Tfa&%k9j@Jw8F1J6i?gR!_7YHxB)wy15Mk*xg7;z#g>I)|*V^j?}5FZE?} zp@AjoaGTo$pD-`J>r=*2c!xtV7@F*y!(H}1fQePE2qAQcQfR#O0(p6u=LOazdxY*w z_V_%I?9nMm_P)SF8T`j4ZXWY&`G_aPNVr5J3yjw3iKp3w-!#T%L#J%$qsjuU#?gZ5@>xo&SbC8utg zayE&S_(|h5DfWW>BIQfcDRIx2rkTGyAa;Vily<4h-%F=mDoZ-+(pyP$F6~M>Cw}>J zv>>v9^i-a0F6y|1MX6e|>Z=w(Y3uwkz09Upjc%Y8cvB9 z^kFFY(Kj4|9|}SULj$0LL@GP_8DP-D#r*Wnocq&;LOeTy-=aP9I@pt$9*E(BiNFCSpN+^naP;| diff --git a/Week9/Assignment9/src/ArrayUtility.java b/Week9/Assignment9/src/ArrayUtility.java index fe43f18..b57f6c7 100644 --- a/Week9/Assignment9/src/ArrayUtility.java +++ b/Week9/Assignment9/src/ArrayUtility.java @@ -34,7 +34,7 @@ public class ArrayUtility { if(n<=0) return new int[0][0]; //Return to prevent ArithmeticException: / by zero and negative array index if (d.length%n!=0)return new int[0][0]; //Return, empty array, array can't be split into n equal parts int[][] splittedArray = new int[n][d.length/n]; //Create the splitted_array array and initialize it - for(int i = 0;i < n;i++)for(int j = 0;j