Dichotomie⚓︎
Compléter la fonction dichotomie
:
-
prenant en paramètre un tableau de nombres triés dans l'ordre croissant
nombres
et une valeurcible
-
renvoyant
True
sicible
est une valeur denombres
,False
dans le cas contraire.
Exemples
Remarque
Vous utiliserez obligatoirement un algorithme de recherche dichotomique.
Compléter ci-dessous
Tronquer ou non le feedback dans les terminaux (sortie standard & stacktrace / relancer le code pour appliquer)
Si activé, le texte copié dans le terminal est joint sur une seule ligne avant d'être copié dans le presse-papier
.128013g[r) ;/(DloF4,I6b=xa+5ut}P7e{À-h0Tmnkê^:SéNq.èy1cdz32à8ù_wvLpfO9RA]is050Y0C0y0u0@0k0^0f0X0k0u0^0^0s010y0@0-010406050^0x0J0J0u0d0V040P0l0k0x190l0K0f020u0J0-0g0f0;0C1j0d0S0x0C0^050h1g1i1k1m1e0-04051R1K1U0h1R1e0Y0@0+11131517130K0b0x0u0b0C0F0-0V0y0G1t0f0G0@0b0G0k1}0G0y1c050|0r0k0C1%1416011|1~201~0y2628240y0d1S1^111p0^0-0u0K170#012a1)010.0~0C0K1x0C242s2u2z2c2C282F0J2H040a0f0A0d0l0-0l0^0@1s1u0`2q0d0d0C0X2$1K2J0K1S0h1^2=2m2o2n250Y2L1*0@0K2E2Z241!1$122b2 310K0l35240-2+1S2:2=3i1f2t1u372A3b0d1j0k240u1{2+0.17030)0)0X3c0C203a0l0F0W3J1c0f0W1K0u3j3m1d3l2K3o2c3q3s3u3w0C3y013A3C3E3G323J0F2x040f0#3P3R2u3T2:2~013Y0u3t1S3v0G3x3z3B3D0`3,3b3.0!3M0!3@2/3S1e3{3W173~400542443(463+303-3K0n3M0n4f1L4h3U3n1(3X0l3r3 3!433$453*484u4a3K0w3M0w4A3i4i3m3|4m4K4q3)473F4Q3I3K0q3M0q4W4C4j4F4l4H3Z413#3%4(4t3H3.0B3M0B4;3_4Y3V4@3}4_4J4{4L4}4s4P503K0%3M0%552;574E385a4I4n4p4M4r4O4*5i0F0:3M0:5n3`4Z4k5s4`4o4|4N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043F0^7aaI9K04aGb:c8b?2u5)6I7t9kb~cg9o7AaT9rb ch7FbRa5bt9y9Rb+3|bYcyamb#9BaAba7W898FcB59b.bCcda^cf3K5 b_co9{cSb}aPb 7scs7Gc3a$a(a*cGaCa-1c0m3 c6cN6k0h6n646i666f1K0y69c}2{2?0u792=671Q7l3|2+0J0)0.0u0L0C0)0G7-1C1E1G1I0fcb6}1X3T353|0u0Y0J1t2#0@1`300.891Qdudwdy2$0F190y2k041C6Z0C0ddQ0f2t0d0f1!6Z0l6#6%7a1Y1T040p0k0f0^001/2#dX000x1u3 0b4H2#0G2Q2L0@dm0T0f0,292j0C0u0xdU0d0@102EdU1k1x0U2m290Y0ld;1f2m1t0b040l271}0u6#0@da2E0y0f0Mej0f2m0@0Q2/ep1,040T1V3T1R0E110G0udmb=0y0Q0dewdA0K0o0f1`c6dX1D2u2(2!0f130f0+3 9CdW0XeAeZ280f1IeB0Q0be@0f0$e:3v056nbd7a6ndoeO1e0x0k3T2004e/0l0x0@e%1`2+0K0+em290@1i0Q1!ew1DeA736na:a=c@3E2=fj1efje/3be$110{0y29fae~0^eB0^emeB7hfgfi0@fk0x0-eYaz2+f4f6e=e@a(fQ0K2mf30Ob=d,dd1reSdRdQdW0Y2u10e;dV19ek2W2#eke9e6e80f6/6n9Yf 0s0fbwe90v3N1K6n8A0hfK05fjdCf,e^29f5e;e?28f?e`f^e|29f{0~0ff~eBg2g2dXg5f:g86(0ff20xdT0Yged328gggifI840fgmgo0f0FgrfH0`04gugw0hf$7jg{g}d)0,3v0Z1tek292+gR0G290i0k000Q0X1keBe{29f8g,98g@6ie~eBhlg^gk8`hog_d-h7fyfneBf56ZeU1HeWeYe!1`f{fl1u84d;dV0f0ufteyfDhm1u8~90e+9Zhwe%0X00e 0feVe;hs6ifagsfI6Ch)fWef10g40Kg6e5g(e70xe20/1ufY0deB2(e;0rfm12290{0ffrhThk6nc/0 fbfIeNdr7jd60_1#dGdx0KdzdB6VdE1TiudIe#dK2#dN0Raof.1j0tfw3 e+eFfm0dh`29iag!286{d(1R2V32h|0fd@0fhfhhd=30dYfviw19iOh.9Q30g;h!bVfcf1iOf58,1kd|1jfS0t1c090i5U0N0:09gu3ie%0ie`h+fnfVeB2m0U100beZ0K0Y0eioiZ040jgUe}0-eyh610hg0^fp0(f:fU0Kh@eB2t103f0Qc6f^0Cfp1u0d0Q3 ece5fmh}106#a(iT0fiVicjP2Z2!790^jv3Th0fj0=e96hd$dWj)0djVhRi(1ui+i6e~fsey1`2(j1eb1^j40Cj604j8090.eZ0X0Dja0:0z0D0#0zjd6Rh%jMf/1!f.kc7Wj2kffAkij80w0f09192Q10ja0%kw8pgvf(fLf(j{e+0xiM0Ud~k0k23vi)k6hik92W2%hkkEked}kHj70iklkn0DkKkMfwdnkQkskukS93h(h*f5kBk;aCkFk@j5k_0#k~kNl10H0N0Bl5c?gwj`30e/e.hB290Tlx1KlqkXgefr19k$j#a(k)k4i*hgk70Yh)k.1`kdj3k^kjk`km0ukokql30N0D0!0H0zkvje9Il7h^l9jCd=2E0+ka1u0Wiog fhd70=lsfogTi%d@2920fWh6eF0}0ke}lRkGlflUkqlo3_e%eegg0-1qedlP1ul%iQj*e(i40}fX0@e:he0k0Q2Qf^hVg^h:hwjleajReAj@iq6fiq0{m90^04.
# Tests
(insensible à la casse)(Ctrl+I)
(Alt+: ; Ctrl pour inverser les colonnes)
(Esc)