Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Eklavya17683yWhitespaces actually don't matter at all, if used in calculation; lets say
a = 65;
b = 80;
a + b (or a+b)
Both are same
And also how would be the indents fine without those spaces? -
msdsk31813yI hope that includes newlines and line wrapping.
function[swap](items,leftIndex,rightIndex){var(temp)=items[leftIndex];items[leftIndex]=items[rightIndex];items[rightIndex]=temp;}function[partition](items,left,right){var(pivot)=items[Math.floor((right+left)/2)],i=left,j=right;while(i<=j){while(items[i]<pivot){i++;}while(items[j]>pivot){j--;}if(i<=j){swap(items,i,j);i++;j--;}}return(i);}function[quickSort](items,left,right){var(index);if(items.length>1){index=partition(items,left,right);if(left<index-1){quickSort(items,left,index-1);}if(index<right){quickSort(items,index,right);}}return(items);}
all languages should ban the use of white space
joke/meme
no one matters