From 55119130daa768eef724bbfe0148f4db8e3419a8 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Fri, 9 Dec 2022 19:13:15 +0100 Subject: [PATCH] ca marche --- Makefile | 4 ++-- a.out | Bin 28016 -> 0 bytes ft_bozo_sort.c | 32 ++++++++++++++++++++++---------- ft_bozo_sort.o | Bin 3368 -> 3936 bytes ft_is_sorted.c | 6 +++++- ft_is_sorted.o | Bin 2384 -> 2632 bytes ft_putstr.c | 2 +- ft_rr.c | 31 +++++++++++++++++++++++++++++++ ft_rr.o | Bin 0 -> 2984 bytes ft_s.c | 24 ++++++++++++++++++++++++ ft_s.o | Bin 0 -> 2792 bytes ft_sort.o | Bin 4648 -> 4648 bytes push_swap | Bin 24192 -> 25320 bytes pushswap.h | 7 +++++-- 14 files changed, 90 insertions(+), 16 deletions(-) delete mode 100755 a.out create mode 100644 ft_rr.c create mode 100644 ft_rr.o create mode 100644 ft_s.c create mode 100644 ft_s.o diff --git a/Makefile b/Makefile index 216f92e..e8d055f 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,11 @@ # By: cchauvet u{WlMmA&l$3U2n9#_9B#wd935M(M zzq|j_yLVFB$#e#W+}d~l{eSMh|L%X^?t6QyyTiTPT!tYyxy1(sVUrDt(y19Eah(C^ z6dS}`d|xi!Cu)FuBu()<6#!SI=UnB`tLbh)(pyZK8Q?NS77V$D1W9kUbebxJ#8Bw# zAU%^98h66iB~u87%rBJ}BxR(a{4T+V^z|{c>rquET9o`mM>!nPdWSS*Jwi$Eq}DsB z^%$O~3L!CMf09q=vqAgQ34`EK3d(OGoO*k;o)d1>@(igAN;kcfi~lC&?b3S7g3^p| z!uu3iFy!)XfSztzE%ECCH}j3UyxH1ezxF>v?OxG3lq>=SUtOUSn)(A zF_6sW5}DmQwhX0HiQUn@A+j_uoK9&=mJ*#&kSg!OKezl=7`3MhpXuRfelj_iT7Rde z<(DMU>@M+9Qb6MIgX4ChQPCgL;{((8Yr3~n@tMx}bDI^N`Vy7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%%^Qof{d- ziI8+h2-(m;8YpG5iI@oG5{H0NKtMVzTRM~&)FCh!hc(8O4HXMYgYzgVI-Ggaqf|K^_c#b4W8e43W4usE}fDL^kZ{4j}ZKI@ag)6+^vMr}Vo*mSgxa=+kfX80U2u!!})*v;JI%ab&1X zSfAHx3@5dq(|>&ZpV9i=T8@8*$Z)?+pLCr5`!mqUCu|=#b(J)9u2h`;=Y&H)sP!1` z(&iXA%!|Kr=<|A#AcFX^d~igA#H%PC)Q)y*O9UNkJqsb z`S-6Z@ATg{v_7}L2x>_U`S-AzS`mNW27}6H{bgE@;eD*Ap|kwwLAUEqXnlrWHmvoz z|7cXagbb|-^{`V~XY=2;amq8!@aNDC*z|cl{!j~uNGzwYX`JbAfUy=|(%^`(JH;ZE5tv*`PFDEaf;@CvOcYp2$C`tOb1N?{*2j6CVLmD*lusPDo33VzXHoXcg|Mr0gSl&l3YC2_Mu!GVhZ0Wxt8 AjsO4v diff --git a/ft_bozo_sort.c b/ft_bozo_sort.c index 934e513..9ea35de 100644 --- a/ft_bozo_sort.c +++ b/ft_bozo_sort.c @@ -6,7 +6,7 @@ /* By: cchauvet 2) + while (ft_tablen(tab_a) > 3) { - while (tab_a[0] > 1 && ft_tablen(tab_a) != 3) + while ((long) tab_a[0] >= ft_tablen(tab_a) + ft_tablen(tab_b) - 3) ft_ra(tab_a); ft_pb(tab_a, tab_b); } - if (!ft_is_sorted(tab_a)) - ft_ra(tab_a); - ft_pa(tab_a, tab_b); - if (!ft_is_sorted(tab_a)) + if (tab_a[0] == tab_a[1] - 1) ft_rra(tab_a); - if (ft_tablen(tab_b) > 1) - if (ft_is_sorted(tab_b)) - ft_rb(tab_b); + if (tab_a[0] == tab_a[1] + 1 && tab_a[1] == tab_a[2] + 1) + { + ft_ra(tab_a); + ft_sa(tab_a); + } + if (tab_a[0] == tab_a[1] + 1) + ft_sa(tab_a); + if (!ft_is_sorted(tab_a)) + { + ft_pb(tab_a, tab_b); + if (!ft_is_sorted(tab_a)) + ft_ra(tab_a); + ft_pa(tab_a, tab_b); + if (!ft_is_sorted(tab_a)) + ft_ra(tab_a); + } + if (ft_is_sorted(tab_b) && ft_tablen(tab_b) > 1) + ft_rb(tab_b); while (ft_tablen(tab_b) != 0) ft_pa(tab_a, tab_b); } diff --git a/ft_bozo_sort.o b/ft_bozo_sort.o index 5e30e59e1826bbf89711dd59d7aaabad8db7bbd5..d82c3a85b8d375c7dc9f29061252f551b6718ce7 100644 GIT binary patch literal 3936 zcmbuB-)kI29KdI9Z#H-Nad%1D+9pO1spg?%^TVpOJ?fPby&S0z#h9dM&%4WBE_lDV z-AmJ!T1|`+PfLn@@j=A@Kp*^35Jc^Rf-edRg3y-~a^ORxAOQ>U`< z`FwxOcfLEjvscF_pY>@P5u%ZkWOpPeA+L1o_T#J@ClRomO03;Uto#v8tX z^()((s9)J8;WsIC8ec%X1|mtPhp(MSor}k}>m;!@zUdjPjc-7Iiv_Bm*;xBFQ6Jyb zep+ehiR=%Fr@s%s8tpmU;LbDbLNjIhAm^zfv_>b%4nzhebgZbe`IPV3el4fRqz6nUUO)UEXxg!m2A9(v{wA%04H98B~QLJyFMURO_u5rzRIZ~-nqW_k0gZ(x?nab2kPA!@(q)YSBMXPEr zluOakF>}Nm8G5|Nl%ubW!RV;@1j#w6O!-ndWtXdtnI*%eoIRW`7cF}@o6V?*@&PbEc@h+wru`l2!UoOY(oC`^XILwU zSeKc1zY9TDL)7SDjrO+RrG}AQrn)gteY3RJn4!TW?VF*#7_dC;2GE|QgE=~oq{o-( zNRpbr(o-fKh|xYUiP3iO^czXAo~FTbG=kkE^%*Zv<2>y#a8 zA0Vv8J^0$8j3NX6$6kMjy&oSDCm|wJm zoT>hA^M?xmTzf?Li5CBIMPD}jtl6e$V*8HEDm+~;#FyOvm`B`>Siivd{x_>%obNyJ zoUwk0gumbyfi=s2i_ia|qEv{k-spb};Q0Ha0x@KUQ`M&vP=DmHp-LlcV+9^8C zwXVJen=@8oWSQmrm7h9UtO#dik`j+TS?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;NWN)d0kB01IQ70N><|Y~n0) TfLx%5L^wY{eX?S*CYL+_6&q8} diff --git a/ft_putstr.c b/ft_putstr.c index 1943d4e..77a0fa7 100644 --- a/ft_putstr.c +++ b/ft_putstr.c @@ -6,7 +6,7 @@ /* By: cchauvet 0) + { + ft_swap(tab + i - 1, tab + i); + i--; + } +} + +void ft_rra(unsigned int *tab) +{ + ft_rr(tab); + ft_putstr("rra\n"); +} diff --git a/ft_rr.o b/ft_rr.o new file mode 100644 index 0000000000000000000000000000000000000000..d1f0dec92b0a1665c6e5615190c277418ec4ccb9 GIT binary patch literal 2984 zcmbu9U1%It6oAjn?488jW_OdQP2FM_RD^0KKc?VMjT>s}7)u2qTG5cqZf1XQcQ)Of zjj5P6xLOFYl0tp<(U*dcg5pn6?33V2!NCNUrJj=c3obR4< z&)mEB-b=G*PV1TmQZ$%`Jx@}Aa^Iev3(Oo0V&uHNdB<-5owhgE@7Y`H_jWQkX#XUG zcgV2Yzor*{DW;CS3j5edD%nYd7uo&HMIND}sIt z=H0@apF5cO*Nsl66IN+7oH%HM+EdA4VI)*zWJc^7O z3GElmB-5AmQv;@p0qD}$N#ZC=)X8!Ey&&Ksq8J>*UemOHk^`jZ|G}npmyABZL*4(y z$Y`QJ{=Lx6IrCki-4S4%|4yXiKM2#D6OWt|v6CWUzD(n&%OZt(__`RG6G!KSab3hP zOTQwt1>MAQ!Q=;aU*Sj$?sn9G=Mm`m8|Q(gNPw|-gd!A=@!qjfxOl*qjsdiT`^A8P zeeek+>3tO7TVz9#?+N}RWYY)4zjFXTjGTnFt9$s-&SE1WMqhg$Z#c;eK@{S2{Ui@A z5%YM2m>9Ifcvb ze3rTVes)3cPsG7mcJr;$qLa@z+*Pm|Zq>1Tcg+W@P_NZod}#2|T50)BzaeAE3|=zo zgZC;-3umf$#X1e(vsHCHu)MnOTCbg*A8q#<5=Ozs<1B3ABFNV|D%Xj!?)rwy50VybDo? zwyZBTy)(V?&(db2SfT3nGEZs;N2J{iLgQo3k212=*e^r2qK0oUIHyb?*Dvul8ol<< z<^w7Bh4zo$b(t^E&!@=LZ$bora{W)piHI6|3CDWXU*r0+4%HvPrq(}?%sA7jquRjM fm2J+Kb5lNvTK^kl>fTY@5?|^pCy=7rYW;r!f;}a0 literal 0 HcmV?d00001 diff --git a/ft_s.c b/ft_s.c new file mode 100644 index 0000000..a33387a --- /dev/null +++ b/ft_s.c @@ -0,0 +1,24 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_s.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cchauvet *Oqtf zrbq!qL`BI31QJLbxgc@kS`HwA5Pt>|s?-A)Zjo9k%xs&faL>+5Ih*2n^f|Xmi@5xdqe66_%EBbJ{#s*KLIJR{4~Xdp3I} z``GChP6HSw=nOU&08(lUfO!%&7vdBED~}F9`Vla4XS3NX4(04VOnwrRk7CRnibT;%)<>w)WT#WGRU7%?s95j1 zeyce4hC!$A7uVM9ReN>isZrFp_WnA08}`%C46A`%hmzk6O6`8n3rh8R+Z~O)u(YvW z8jON=aLpY=VQzGX(5=D94>~R1YZN#R*ftKg#*sARa62g6JmQOE0Ik$d>l#P7zOwq*?eL=(X&AI{J+F6 zaUZlIlg*2EkvTCM)xCpQHWNIP;Bq_=OU_PSC*l%AUCh%BMfghW!b#S|qZfny`xBh{ z*OWlj?pHq01{nuDaKl1#qDDiKz-%_~rb4}p`_IDLtXTQjr zc6V}KWrfRl&M=p8vJ3i52JD7c8?~x#tv2+=U=O{nYlq%;2zI^S>v?z-(CbCF!6*#E zp(Kz=Ep(8?S#d`lzu5=d?}wiK%Bx!|LFm@6g5B+odsVm5z;mm0B)r@4JqBL8+8nw) zPu^!6OVA-?2iJR~shW$i{e~O5)VOA^$xQyA{sz;N>nOeb$(!|O0jy~qlS1bnvE&}6 z_A=d2=mU`y_1(;4WAgo)#4>akP#!&VISEcN{{c1CUuR#`7i_3~%lMO8Y{@146+7=H zA=+weWeTGdIZ8hzCn0M7d2Cb1NZ}5{*ExaaPiw5spXN;=vft5+WRLU40$59Z(R6-H z%h&kxL0_JvNS4!zD{+33k*&tk`XC#q;j0YZQaX_N3;r05Y3uhj?_XILT0i<* zBl)s_t|L>&ga|(2`h9W|qQ-{UHm&~eTwm%?efnCd^_$3y3kOu@L%b&P2j|PXN%;D5MwD7zD literal 0 HcmV?d00001 diff --git a/ft_sort.o b/ft_sort.o index 4d93f3e7e85cca855e9d9a8602099156808d9489..c2e587592bd8beae3fc31b9ffc7c66ba63336c45 100644 GIT binary patch delta 14 VcmZ3XvO;BpG7F>rW)&6|J^&&M1C0Ox delta 14 VcmZ3XvO;BpG7F>5W)&6|J^&&41Bw6u diff --git a/push_swap b/push_swap index 36434a5c7c8b448321ce460a3e409ec151b04fbf..a783d6750411499ad7bc1631f2c5f306b66d33e6 100755 GIT binary patch delta 3984 zcmaJ@e{5679l!Vd&W;_3oj8eYlHg~;k5ZUP*Odek%5#aCV?qdpq)8yb0THrp>mXzr zRmB_#w4?zPxIbE?P9)o;Q4MLCT&Wa>niST+HVvw&Xqs3TCaO6CwrqrvGHCX>d+!;O z{jl`zbNBsxzTfZN_wL?v*Lf-VOR4WE`Bc-fr$2KX%p&4r|ej<^SkIuC3oUM__$S|3m zh`WwkJvqQe3Ro%DMNYCE!Nblb901Pmxv-08#ru1+JC@f>|LqEnj z1e;90_JDI1=g}6<>E`fcFNySolS0r0K~MOm$XtVd@7kL^A4Ph@N$HdBF-v6I<;b#2 z&cnQfLVoMf)YRAqNXSQ#-tUeld*b(D>Jugrxp(bkZi zV382Ot|>Z^(XA6Xrsu0jDROJ_e+?0ToWw5_Sa$xGMuqE)C}OIk|1=`qM@X>&sp;hz zNrZ0F)Lr=x-JOS6EMoF%j3~d#PPkq2#pUC(I zGLBv6H5A+17Bn}wt&hbDhS*iFC+;zhXtH`j=v>Vg+MNDMLh2$tpGUfHyKug+C0PAA z>_~S~>IqMD@0}pdqtBT|*cP6M43EkYX(ZA;@(`IPBPr9z$%}Wf{qPyWftV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iA*b+(C!r%P0_Ny7bON2y_%ZSwmLUPe^ zC5Vh9EJ^NpgI4t*Ma?|7ck@|vpyp*bqP6bam_>9=IR6_vmoBV9&_hq|MB7Fz0E=Cp zDB?)SMeJOCA_#ex*%m?db3GiBgFay+jb#!rI6qg zrq=LpcL+QmS0I@5-GWZ<6L@{KV5}7^Z0Zv@eT87H6AWnSw+lvn6Y4%8Ous}hBXT~$ ziqmnb1t~qMwi-cSfDTQ}VLNWn6t3)G#~rv@sPYy!OXeark|nC% z$`TxY(V{&6W-zTkwB9?2GYhU1$E`fcJh&)wP}@Hg@rf33Ta2hsFNXwpx7;R}Fb_4a zH2AXIW}l8Wi#|TDxo`{B5>%r(8_65DcP&I$*zBuVEUbVSukQ4&w$plWSJ-kkYpTnp zs&SYXYdb=`miL<~O+IA2Qn6ET6r)$7zlFpTk0@#$DtrY!6}IMFElRybRh2sn9j=FX z?bBf26l=e0e3!;6mjUvBAO5Z*9F=F z170btgyT1eMV=LJ>@Ly#T^fHwi*rKbzh;k>3&(6lWZ+q)iM}8itI8;BtiB9$Ylfs* zOFAi(at0|->*Beb2r$)Um_ly{ej9~##WWH8b(ztj7drHZr5C!94Z2ulLV_*@h(|K6 zn8$J9Vc=_+Y5FuzWv}UA7n-Z*sAi54t~bmy9xhf*0~i}~<4$-~D~tV3V{>Ak1C@=)jkzYFQnj)vn3g8}3yV8gS^xk5 diff --git a/pushswap.h b/pushswap.h index 5759493..5c35e6a 100644 --- a/pushswap.h +++ b/pushswap.h @@ -6,7 +6,7 @@ /* By: cchauvet # include # include -# include +//# include # define STOP_VALUE 4294967295 int ft_isnum(char *str); @@ -40,6 +40,9 @@ void ft_pa(unsigned int *tab_a, unsigned int *tab_b); void ft_pb(unsigned int *tab_a, unsigned int *tab_b); void ft_ra(unsigned int *tab_a); void ft_rb(unsigned int *tab_b); +void ft_rra(unsigned int *tab_a); +void ft_rrb(unsigned int *tab_b); +void ft_sa(unsigned int *tab_a); typedef unsigned int * t_tab; #endif