From 3fc423de4ad5b9a62ec2799427c5b1ec69c7d42a Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Tue, 6 Dec 2022 17:35:45 +0100 Subject: [PATCH] presque --- Makefile | 4 +-- check.sh | 1 - checker_linux | Bin 38192 -> 0 bytes ft_atoi.c | 2 +- ft_atoi.o | Bin 2568 -> 0 bytes ft_bit_finder.c | 29 ------------------ ft_bit_finder.o | Bin 2800 -> 0 bytes ft_get_bit_max.c => ft_bitlen.c | 26 ++++++++-------- ft_get_bit_min.c | 31 ------------------- ft_get_max.c | 18 ++++++++--- ft_get_max.o | Bin 2816 -> 0 bytes ft_get_min.o | Bin 2808 -> 0 bytes ft_is_sorted.c | 6 ++-- ft_is_sorted.o | Bin 2344 -> 0 bytes ft_isnum.o | Bin 2328 -> 0 bytes ft_p.c | 4 +-- ft_p.o | Bin 3568 -> 0 bytes ft_putstr.o | Bin 2312 -> 0 bytes ft_r.c | 10 ++---- ft_r.o | Bin 3248 -> 0 bytes ft_radix.c | 29 +++++++----------- ft_radix.o | Bin 3384 -> 0 bytes ft_sort.c | 18 ++++++----- ft_sort.o | Bin 4224 -> 0 bytes ft_split.c | 28 +++++++++++++++-- ft_get_min.c => ft_strlen.c | 25 +++++---------- ft_swap.o | Bin 2264 -> 0 bytes ft_tablen.o | Bin 2280 -> 0 bytes main.c | 8 ++--- main.o | Bin 3104 -> 0 bytes push_swap | Bin 23480 -> 0 bytes pushswap.h | 18 ++++++----- test.c | 52 -------------------------------- 33 files changed, 103 insertions(+), 206 deletions(-) delete mode 100755 check.sh delete mode 100755 checker_linux delete mode 100644 ft_atoi.o delete mode 100644 ft_bit_finder.c delete mode 100644 ft_bit_finder.o rename ft_get_bit_max.c => ft_bitlen.c (63%) delete mode 100644 ft_get_bit_min.c delete mode 100644 ft_get_max.o delete mode 100644 ft_get_min.o delete mode 100644 ft_is_sorted.o delete mode 100644 ft_isnum.o delete mode 100644 ft_p.o delete mode 100644 ft_putstr.o delete mode 100644 ft_r.o delete mode 100644 ft_radix.o delete mode 100644 ft_sort.o rename ft_get_min.c => ft_strlen.c (64%) delete mode 100644 ft_swap.o delete mode 100644 ft_tablen.o delete mode 100644 main.o delete mode 100755 push_swap delete mode 100644 test.c diff --git a/Makefile b/Makefile index 8acf246..455f8c4 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,11 @@ # By: cchauvet Ety-;@dZ}8f2;owKzNit=MvFCStQ!|KZD~zw%KpAHXU=ok>|*=AzyE&S z4`iNaX3m^BbLPyMbJ=9Ar)YkL%Vp?Krg5=BZx0-!Fa<*BiOK^&fst<`@@~Zsl zlc!J1ZK%zi%Izlk#CyqQrCbxKtxZchkHCMz5&euoe=I(A_{{fzGUvfFo9=w?cjJHZ z=WHNS)%zph-O0>&&&7YLJNZMlI^Gy&TqRbi*9_>Va_W}pMxegFw%+jh8iM}v8+_#} zZ}2VmS5_JI0e^*2?XRk;EeElDmEX6#vc_Lkc}oDVRGJFZ2YuE4${OS5`pRIySY96p z7?%_+m^0TmHFui%G&MKR@GV$e?5haW2Ub)z1OxSpi|1C=)&v&&%c@A+it5@L5$98^ zDH)+V^?wFDBtxF)jeNl+Q2XzQ%F3bSN!NfzxX>w;#}aP^p6R2-UaYg{Lt_y6I1+4R0TRF&kb)bCDh!9*UZuUK@U}i8YL;1y3@l{ra=T zhL@1Qq*fbV#|9$owc+jYv)zW*Z6^%^86MxKZ=hqK4bBg(89cq#Qp z2b>S+ozd$Je-bZ^-es3^4=Xs zGQHs*?~d4PuWOI@%_G545crG;96|!q$y+z;=U_8J=XslFeV3j}NuMF!$gDf@78{Bt z$GrHlXTWWEcab{lNU=Zff=IN7*q3%M2M0Z&SEhKwO&t~9NY=OsVDpAOz2~>Kd16$i zy9Q=&_QYJ?h^GfFc&LaN+F~^q8wUC?SJ3we`YMG!NziKqUBKuNT3FfxQinJE4hh)| z5A3EyLD;`7?8BW>3IzRk1j3fqep0SJ7E)d!#g&R9h5f&o-Bd9{(9bEfR`JVARfB%4 zgpW*8u@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DPj_+uGePI470&-9a{WrZCWmU%kLtwHjD++53q}tQt^fc4 diff --git a/ft_bit_finder.c b/ft_bit_finder.c deleted file mode 100644 index 39df024..0000000 --- a/ft_bit_finder.c +++ /dev/null @@ -1,29 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_bit_finder.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cchauvet > i) & 1) != tofind) - i--; - return (sizeof(int) * 8 - i - 1); -} - - -int ft_bit_finder_right(int big, int tofind) -{ - return ((int) sizeof(int) * 8 - 1 - ft_bit_finder_left(big, tofind)); -} diff --git a/ft_bit_finder.o b/ft_bit_finder.o deleted file mode 100644 index 4ad5bf9c127cfc7ca0f38441aed0bbd8891c3b02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2800 zcmb_dUuaup6hHUgeA#TaByFdzU0DlOx2e5pYejUiMkJb*Z4Y8ah9&0DO%u(ZlH9~9 zR)_7RF~T}!F!W`D4}0*@hdl^ZHc+2^aNx^cgbjR9mWP0ac+SoF(wnal5j=47o!{^L z`|i2lck)5>^ozQtffNnqVHZgj;1BPv9&ywN1krObR{yQOwo|XReuy^5(J-^UzSe}z z=)J(kA%uk~-FPW%{KzoRYP$e4lg4I}_ETU0N${(G=fv$3|*sJ8Bqss8yph9({~6y&-?5QX!_SQXcm(K7of-xZb3G8Q zVSW$Qg8fd54mi5{a|H>VNZ~Q0EscuyDj_ZKDE@l%OYild)mf~?`z+$pmw5t=Te4@BKQM1aGT&XxQGiy$p(^F4W9plXVvxw%*Cn00UlQ}z{ z$raO9*-SyGn5l%arGixnrBc~MwPx9&x!KT4wUVv8omhcf(e90j=dFxNm2=Bk8((vzv4u4Z&AO% z*n=yLiXFVkBywyFAlE(0sLP7PQ;d`$RwO^g_yHGBgG0(FE7Jd2#z%Rj&bqtwnBu?0 zc=jLsBZ_~5@mYo6Wc<3qf5P}ph5w9kjaRu(+1Cxl-x&$WeX8)X?p1}Cbtjmo9=Q7u zQFvK*j(NEshWJg*w3Vzb#}mn9*{XqAw(<$nwpML0Q>8+|+A|V5_rGVfbjAcHs@P@D z(n*{vW=dcdOSWacbarv7Vkc5>ftki!pyBbRA>+;WTKF1tz8WqrBQyyzES;LBnDOMJ$a)9w0&`*OJqvaX~)@5HaD?pK+3 zO*--_-(S-7e*OA)n}?$83-ym?qKuc{zmA-`C#0ao^)C`|iR!z7wtn@4e4u3=s!uas ttxxmLINdJcavq ft_bit_finder_left(max, 1)) - max = tab[i]; + if (nb >> i & 1) + y = i; i++; } - return (max); + return (y); } diff --git a/ft_get_bit_min.c b/ft_get_bit_min.c deleted file mode 100644 index cc3d37b..0000000 --- a/ft_get_bit_min.c +++ /dev/null @@ -1,31 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_get_bit_min.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cchauvet max) + max = *tab; + tab++; + } + return (max); } diff --git a/ft_get_max.o b/ft_get_max.o deleted file mode 100644 index f02e5970c7dd72be1892b90cf779705c7dd1fe07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2816 zcmbtV-HRJl6hAYQJG)KVB%2j&t-5(w@j-U7yKV)$Ya7wnY-y_q5m9P3$xc3KKGtNi zrVHCj7piHjb{`7*4^$sY5e1?6V5NoPAK;%*SRvpF`>>!8&zU(lnT!z;56qnV`<>66 zx%cLB;>_!+qJR_yPQU<37WLR*9k-Wp2%~2z*?yF4Z|=97dk+&`ihP*ZC3`2)T}$>CDPVA!h);*=2=>Gbk*Xwl>yXWucLsPGT zlYgrlqzz_KNs49%xV>)QB zy|0@{sFHja7s}g&l+d^M*3|8mgYG)WauC^k>h_wACK#1%6d^Rocnkq&oEpkFHI&h| zfuK;~)9nsQEYseS#vq3OVw4g1*NLxBEiaJp;6i}0nlEu;va{~Mt<#et>>=u1Lf5@UK%MD*Jt zd_{~c3BO(t<7n{dFAMck;eTJKh(Nz8{QgH`O1~nePm3V>-4<$I)v>fwWYqghBz^FE zZ4}Xa<@0Wi6Tg-pp@&B0dCTrQ}3gZrI*-woz?FSOc%YMFc=sqv|`Od>% zU>s#lvvJQS?%`J$&#{($GQ@8^xGnes7!Y8rn%QO{oylhF<~kU4vz#$3vt@yit5qr{ z-W2T7u`{e z8)<%%$-_*9P}BFtE72CoKaI%S6FK~1djY)1S}L#a8))!y8FX?Nz7&Sk+q2%wP`O#e=(f1?o$1w3eS}Y6k{mDVQ9Oyn4g$D?3-9d6c7qS)Jpw2cM=8Da{{ooU BAX)$b diff --git a/ft_get_min.o b/ft_get_min.o deleted file mode 100644 index b8e0eaf4ca28ac960932b00cd5c76f584c9fe6b2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2808 zcmb_e-HRJl6hAYQJG)KVB%2j&ZFQqmEXdA&xP7p@)+`#EO4kP=B1+9>vy%_Zm&s&Z z3u~n-r7>Duq@Zto(}zBk`XoMBX`%QB_$L%r2)M#N1Qg;qGv{t5*N6xnm^t_NJD<68 z&n1_W7hcsh4Wwvr76wSN06lZCPPoeiMA0*yYClZ1w|ec?{)1$f3=fifl%SK`TTJdp zKA**Ps*~)cax2|V;99D)g3I*YVqhn7opPdIJK4qe_Fb)=-23%@zu)g9yBF`}BU7({ zmw&q(=NfLNc5*k>+3Iy#`@5I`+CL$?o67x6>9_C4FW%E8v}eMT!U#tnJ070UVpvDF zkc^p$qel2lXfgEcvGbEJ9Rn}~=uDlT1PCk)L2(j{@Yzr(1Ykyh9N-6h0#p^o-EBJT zuGQBKBy>r>jSKBfLR#bwz72h6(?j2T$ng-_0{TwfMH7t5E{YKvWIT<4GfoXPQBh>>4ynmux5j zrovD9UwU|ix<}D2y#d;0R6BlnZ2Sw{`4h;|LqZ!2%i-u%{pBO3o<G$NWXgSSPXB@VSj$XpWok{C0KB4*wa z(JNwXNd(P;7)L|Ed{OA1iQv0JM+D|o5ez;QC(JA2sn0Gz~4{t3R+^Af0ZNLJ;XJ&O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5Yv5mDu9| diff --git a/ft_isnum.o b/ft_isnum.o deleted file mode 100644 index 194eec2e85b141d439e0d899d259e94f26be9170..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2328 zcmb_d&1(};5TCc37j0vAW9wH{q=+B*(M_!iR#&Y^G%dx0qUb@xCfzi_WK*)6`hlOc zh{X>SJ$mryUm$`YiU0R48}kT zgCnqrBnxn!FRn+M%Tch=^K54RYi9oDLgqnw!F~s`Kfs>5i1s!fvL7Z@JYqlIt>Qs@ zZlj8K*>fupe@g$tJA7LwY?;~jEHj^8`1Y*PXrPg5e31Ti@grNwwpxAMw32H#SSwj? z9Kdjp?2V7EGp&P(Ly7JEV|_>a0Za~tpvL+DVq3tpjwBKZ0B!>@ki#p67r^pn52%no zFrt0VekerQQW(@LP99Q0Axssk6+cYn^F^;d<437|!>Q?dSPZXt(`{EM z1rdZ%4bZ6u|CSC`QPn8y`e|TSlWfC^Wy_ynGw2=BMMBRE$E@T%<9JWpxPcx3^GL;D zGu|0vKdl~8xQ%9swJXDiXi8VReWuNLclRvsijQ;4<%Y`>@gna=WV?Kg%hwlp|2W^| z@@+2PS>QXyx#RNvE*~lI1LOR#%a^%47N6qrx7>JriL<)FF>@Tw%H^3# z)|;HfFLG+hzH%w>1>qO7g_>9K+hK5~9n2GXIn>uGr2mIJ#31TC$e3@$Fuah2(9|DQ zYy`x~`I5F#vA8PXx(=Q^6K16_dB8~ ztpggs5`K6DHHH2cBsAX?bBKT{1W5A-?4x9MN?&;sDE8}$^DY2_oLT@6l6sHM+6kneLb{w ydVeoFL=0jKSxgQ9r=A0axsF|v|TOHwKN6ANCK91c6Tv z(Z4#q4f+o0oAs4#5qd)d$JSZsVvXtD#>{qoONk}FZS-9QdncBh*<7{N#>{5@Yjl0% zy}AdjC7fCPX5``qjURT7A8SjI{-WkYoI7EprwRV&)Sl${RjfA(!S;O ztmUNDjT-`1Mp`{`dz#fI08+JM&1%P5s!3~qd`HGmGh?VFLs~-n1!}`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<)c zk^3)5Yeq)E(|l7JbKu8w~H)MOY0Zi&8-7Kk?jOa22D;xoVoLhDiQ1hDrAUk8rF_&p$ZinCW)srS^j zixlB_)o`_cVY31{9m4TqGyWyvSaI~>onIncj|0s{Q7?>aivTwU#MuV%0UUrB9}QG- z9dX3fr6v9P5RP%CNXHY3gzL1F6b!eKtmB6X=e&=TepJIf(jO(xarhj~Y4%T(UeIuk z)6no`(qARc@z+Uzi#V@yp7eJ$oa29@;YHH%Tp@8B)pkKoAqa%GH(a+gfv!iw2%{?pZQfaw7?=CDrFE3D%z`Rtfcm#Nh^ZA-v_PBFl zimb398}@3uexi&VQ5QU_3$E|t(1h;;h>GsOVgbDru-3@= znPdOz96D;#!%L6-w3cJ-F%Y(e*YYY_s{xkAatrIazKW;_56PW<{(QX diff --git a/ft_radix.c b/ft_radix.c index fbcdaf7..0514010 100644 --- a/ft_radix.c +++ b/ft_radix.c @@ -6,38 +6,31 @@ /* By: cchauvet = 0 && !ft_is_sorted(tab_a)) + y = ft_tablen(tab_a); + while (0 < y && (!ft_is_sorted(tab_a) && !ft_tablen(tab_b))) { - if (tab_a[tab_index] % 2 == 1) - { + if (((tab_a[ft_tablen(tab_a) - 1] >> i) & 1) == 1) ft_pb(tab_a, tab_b); - tab_index--; - } else ft_ra(tab_a); - loop_index--; + y--; } while (tab_b[0] != STOP_VALUE) ft_pa(tab_a, tab_b); - tab_index = ft_tablen(tab_a); - while (--tab_index >= 0 && !ft_is_sorted(tab_a)) - tab_a[tab_index] = tab_a[tab_index] >> 1; + i++; } - free(tab_a); - free(tab_b); } diff --git a/ft_radix.o b/ft_radix.o deleted file mode 100644 index 084b841d4c4de9da57fbe185e892ad449728d15c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3384 zcmbuA&2Jk;6u@V_p3R37J8_aGX-KdTl%SH$M}w47x1_2JZqy(^3UMNV<&X7;u-B14 z(zH@q6sJ{O7b!Uuq5cEq5G2G2Bo3+IP&jbnfH=W{)I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O{{Yxc{&=8zdjRP0Hy|ABS;9CWcu3@(5q?xI zh_5FuaSW+G7imxtvt8ujqv|{Ggz7|N8}<0kNASJC!;U`LI}GghBjS$$N5O;C2mk-z zIS+CHAqaBpR`Qz&L6GAiBKh|SK~(-D#}DyVvA=45Jk(LtJZBud5&W|5RR?$WBhP4D z6aHk7B6l9Sj6q*m1W1lQI8gAeMM3U-nwuEq9P@Mvd#ljc7Op|cvtpp~eS*unuL}D` zg-;9nxWYdc_JG1a5q3`Dp9%Y{(6XNaVNVGy`-uztLxszJt|-vhDB&=}RcSPaei1=L!KP`Bd!aoo^A~c>H z&iA2P;RC{!TE@$LFoYk=IP>VfCYQGnZ;oNB6koX$jUj8$9*!pl2Mg91F$z{DVU(;ziR&{ zfML#d_;<=3@la-*5XQ2;)CUDq=f5wSlHV7ZM$VJ^Jx5L%gZgT{Mb(MD#@VP?CQfBC zBj(F#^HJ3LzW`JB4&yF~iF?EZR9IWB|1TkGKwkg= diff --git a/ft_split.c b/ft_split.c index c512def..18a40c9 100644 --- a/ft_split.c +++ b/ft_split.c @@ -6,11 +6,11 @@ /* By: cchauvet len) + size = len; + ptr = malloc((size + 1) * sizeof(char)); + if (ptr == NULL) + return (NULL); + ptr[size] = '\0'; + while (size-- > 0) + ptr[size] = s[start + size]; + return (ptr); +} + +size_t ft_seglen(const char *s, char c) { size_t len; diff --git a/ft_get_min.c b/ft_strlen.c similarity index 64% rename from ft_get_min.c rename to ft_strlen.c index 01c7813..09ec805 100644 --- a/ft_get_min.c +++ b/ft_strlen.c @@ -1,34 +1,23 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* ft_get_min.c :+: :+: :+: */ +/* ft_strlen.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cchauvet tab[i]) - min = i; + i = 0; + while (s[i] != '\0') i++; - } - return (min); -} - -int get_min(int *tab, int size) -{ - return (tab[get_min_index(tab, size)]); + return (i); } diff --git a/ft_swap.o b/ft_swap.o deleted file mode 100644 index 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B1J{EHmp+(COoxm7sS4cItHHm_21u( zZ~-Rb5_aeu_Hwa!9}D#KCSrm1o@Ago*@-Xsb+#%}-P(;y647=hcpcIH4i;#=zX$dt zOvEKey(^M~pt}W7<0vVpTwhm$1w^Ob~jH^wTQjWs9R5#hF8osTv*$76dnhEEp8bRMx$Q_o)n zXyuEk9cvqz^u9}fPxDGe*MMa0i4Mr|5Yp1u`!oIhNIG_~Cw+g@w3W!%_4Ph3qa5;U zK?U>m*Mp9KJ?Pc`>;0Y^^DZUrzrHWICE2>t`!)0&QR`Pbf`V7A^p6S*&l~}%?pnV} z(Hj9tRO{>g;|Zm|Ny%xDA3u5?PVaJQeZ9{#RYht4KuP;=$w@N%ARxUPrs;Y=s=p)Z zS91COD>8ck87fNa>wRmDD!)bv>hkmJe?aN4RdV|MwmnKeY}3bTa!UN@wG4_0`6rTE zFW{yxQvS|NnUzdj>8#PN?^pVMr605;Wk!*;dG=VIzFx2FQGy4Ha}8*HP5t{kef|Do zX1GwIS0utA963g}jP_6g(2q`ubdAOf6Wo9ND0x^)>uCXm))pBuPyE<6jmC z5?!>OhQ9#KuCMnKH8oOYy7DELu{V@W?Y~~f29>@pN6S-L_VgwYqA78UrS+REip*$z z4IRknyj}EhW$ -#include "pushswap.h" - -int main() -{ - int tab_a[5] = {0,1,2,3,-1}; - int tab_b[5] = {-1}; - int i; - - i = 0; - printf("a: "); - while (tab_a[i] != -1) - { - printf("%d, ", tab_a[i]); - i++; - } - printf("\nb: "); - i = 0; - while (tab_b[i] != -1) - { - printf("%d, ", tab_b[i]); - i++; - } - printf("\n"); - ft_pa(tab_a, tab_b); - i = 0; - printf("a: "); - while (tab_a[i] != -1) - { - printf("%d, ", tab_a[i]); - i++; - } - printf("\nb: "); - i = 0; - while (tab_b[i] != -1) - { - printf("%d, ", tab_b[i]); - i++; - } -}