3 ms·I am using reduce to replace the nonlinear loop in the code instead of the for statement.by molvqingtai 18d agoI am using reduce to replace the nonlinear loop in the code instead of the for statement.