📝 unify code style of ./stl ./test

This commit is contained in:
ValKmjolnir
2022-07-02 13:53:50 +08:00
parent beba975ff0
commit f3ba80b41c
20 changed files with 200 additions and 375 deletions

View File

@@ -1,9 +1,7 @@
var sort=func(vec,left,right)
{
var sort=func(vec,left,right){
if(left>=right) return;
var (L,R,tmp)=(left,right,vec[left]);
while(left<right)
{
while(left<right){
while(left<right and tmp<=vec[right])
right-=1;
while(left<right and tmp>=vec[left])