Zecoder Challenges – Telegram
Zecoder Challenges
849 subscribers
22 photos
1 file
17 links
Admin -> @zecoder
Download Telegram
Channel created
Write The Code of this Program

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/10
🔥4👏2👍1
Write The Code of this Program

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/11
🔥2
Write The Code of this Program

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/12
🔥2👍1
Write The Code of this Program

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/13
👍2🔥2
Write The Code of this Program

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/14
🔥1
Write The Code of this Program

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/15
🔥2👍1😱1
Write The Code of this Program

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/16
👍3🔥1
Write The Code of this Program

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/17
👍3🔥3
A) ERROR

B) OK

C) NO THING


🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/19
2👏1
A ) OK

B ) ERROR

C ) NO THING

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/20
5👍1
اختاروا نوع التحديات اللي بدكم ننشرها عالقناة
Anonymous Poll
28%
Design Patterns
72%
Problems Solving
5👍2🤩1
Write a program to convert any number from binary to decimal

🧩 Share this Challenge👇 https://news.1rj.ru/str/X_Zecoder_X/22
🔥4👍1
Write a program to convert numbers from decimal to binary

🧩 Share this Challenge👇
https://news.1rj.ru/str/X_Zecoder_X/23
🔥1
ماذا تعرف عن خوارزمية Fibonacci وأين تكمن فائدتها في مجال البرمجة.


for (int i = 0, a=1, b=0, c=0 ; i<=10 ; i++)
{

Write ( $ "{c} " ) ;
c = a + b ;
a = b ;
b = c ;

}



الكود بلغة #C
👍72🤔1
كيف تستطيع تحويلها إلى كود برمجي من دون استخدام أي دوال جاهزة في الحل .
😁6👍1
Forwarded from SAV (ZECODER)
بالأمس نشرت كود برمجي بلغة السي شارب #C وقلت بأن هذا الكود يستخدم لترتيب عناصر المصفوفة تصاعديا ولكن يوجد في هذا الكود عيب أو خطأ منطقي ،
ولم يلاحظه أي شخص من أصل 3الاف شخص شاهد المنشور

ما هو هذا العيب ؟

تخيل أن عدد عناصر المصفوفة يساوي 100 عدد فإن عدد مرات اللوب (التكرار الكلي) اللازم لإنتهاء خوارزمية الترتيب سيساوي 10,000
على الرغم من أن مدة ترتيب المصفوفة قد لا تحتاج إلى هذا العدد من الدوران بحيث من الممكن أن تحتاج إلى 2,000 دورة (لفة) بدلا من 10,000 وبالتالي فإننا سنوفر وقتاً طويلاً لو قمنا بتحسين هذه الخوارزمية .

الكود الاتي اذكى من الكود السابق من ناحية توفير الوقت (وقت الخوارزمية)

class Program
{
public static void Main()
{

int [] h = {1000,999,71,1,1,5521,4,9,1,10000,3,0,3,686,2,5,1,98,3,1,212,53,0,0};

int x=0 , y=0 , z=0 ;

un:

for (int i = h.Length-1, b=i-1 ; i>=0 ; i-=1, b-=1)

{
x = Math.Max(h[i], h[b]);

y = Math.Min(h[i], h[b]);

h[i] = x ;
h[b] = y;

if (b==0)
{
z = Math.Min (h[0], h[1]);
h[0] = z ;
break ;
}
}

for (int u = 0 , o =u+1 , v=0; o<h.Length ; o++,u++)

{

if (h[u] > h[o])
goto un ;

else if (o==h.Length-1)
{
if (h[u]<h[o])
break ;
}

}

foreach (int i in h) WriteLine(i);



قم بكتابة الخوارزمية الخاصة بهذا الكود وقارنها بالخوارزمية الخاصة بالكود السابق ، وشاهد الفرق بين الخوارزميتين 😉
👍6🔥1
Forwarded from SAV (ZECODER)
خوارزمية ترتيب مشابهة لخوارزمية Bubble Sort بلغة السي شارب #C

class Program

{

public static void Main()

{

int [] h= {100,1099,999,71,999,4370,1,1,5521,4,9,1,10000,3,0,3,686,2,5,830424174,11,98,3,1,212,53,0,0};

int x=0,y=0,z= h.Length-1;

su:

for(int i=0,j=1;j<=z; i++,j++)

{

if (h[i]>h[j])
{
x= h[i];
y= h[j];

h[i] = y ;

h[j] = x ;

}

if (j==z)
{
z--;

goto su ;

}

foreach(int i in h)
WriteLine(i);

}
}
👍2🔥2