2626 * @param  {number } endIndex The end of the subarray 
2727 * @returns  The flipped array 
2828 */ 
29- export  function  flipArray ( array ,  startIndex ,  endIndex )  { 
29+ export  function  flipArray   ( array ,  startIndex ,  endIndex )  { 
3030 while  ( startIndex  <  endIndex )  { 
3131 // swap front and back of the subarray 
3232 const  temp  =  array [ startIndex ] 
@@ -49,7 +49,7 @@ export function flipArray(array, startIndex, endIndex) {
4949 * @param  {* } endIndex The end of the subarray 
5050 * @returns  The index of the maximum number 
5151 */ 
52- export  function  findMax ( array ,  startIndex ,  endIndex )  { 
52+ export  function  findMax   ( array ,  startIndex ,  endIndex )  { 
5353 let  maxIndex  =  0 
5454 for  ( let  i  =  startIndex ;  i  <=  endIndex ;  i ++ )  { 
5555 if  ( array [ i ]  >  array [ maxIndex ] )  maxIndex  =  i 
@@ -67,7 +67,7 @@ export function findMax(array, startIndex, endIndex) {
6767 * @param  {number[] } array The array to sort 
6868 * @returns  The sorted array 
6969 */ 
70- export  function  pancakeSort ( array )  { 
70+ export  function  pancakeSort   ( array )  { 
7171 for  ( let  subarraySize  =  array . length ;  subarraySize  >  1 ;  subarraySize -- )  { 
7272 const  maximumIndex  =  findMax ( array ,  0 ,  subarraySize  -  1 ) 
7373
0 commit comments