<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adkhambek Yashnarbekov on Medium]]></title>
        <description><![CDATA[Stories by Adkhambek Yashnarbekov on Medium]]></description>
        <link>https://medium.com/@adhambekyashnarbekov007?source=rss-11d3755a84aa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fWuQVGGVpOtGjf8v</url>
            <title>Stories by Adkhambek Yashnarbekov on Medium</title>
            <link>https://medium.com/@adhambekyashnarbekov007?source=rss-11d3755a84aa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:40:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adhambekyashnarbekov007/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Web Development Challenge (Day4)]]></title>
            <link>https://medium.com/@adhambekyashnarbekov007/web-development-challenge-day4-df8ff0ca907d?source=rss-11d3755a84aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/df8ff0ca907d</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[semanticweb]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Adkhambek Yashnarbekov]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 08:11:52 GMT</pubDate>
            <atom:updated>2025-12-15T08:11:52.950Z</atom:updated>
            <content:encoded><![CDATA[<h3>Class and ID selectors in CSS</h3><p>Most of the times, you need to style specific element or set of elements in the your HTML. Becuase, some of your designs should be completely different than others. In those cases, we need to use what’s called <strong>ID</strong>s or <strong>Class</strong>es. But before using them let’s try to do same stuff without using IDs or classes.</p><pre>&lt;!-- PURE HTML ITSELF, WITHOUT ANY CSS---&gt;<br>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;title&gt;Document&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;h1&gt;The Capital City of England - London.&lt;/h1&gt;<br>    &lt;p&gt;<br>      London, the capital of England and the United Kingdom, is a 21st-century<br>      city with history stretching back to Roman times. At its centre stand the<br>      imposing Houses of Parliament, the iconic ‘Big Ben’ clock tower and<br>      Westminster Abbey, site of British monarch coronations. Across the Thames<br>      River, the London Eye observation wheel provides panoramic views of the<br>      South Bank cultural complex, and the entire city.<br>    &lt;/p&gt;<br>    &lt;footer&gt;<br>      &lt;p&gt;If you want to learn more about other cities, please subscribe!.&lt;/p&gt;<br>    &lt;/footer&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*inalopR8Nsa47Cpt9I6xrg.png" /><figcaption>Result</figcaption></figure><p>As you can see, we haven’t added any CSS code yet. Now, I am gonna add some CSS make it a little bit more beautiful:</p><pre>h1 {<br>  color: #293435;<br>  font-size: 35px;<br>  text-transform: uppercase;<br>}<br><br>p {<br>  color: #293435;<br>  font-size: 25px;<br>  font-family: &quot;Courier New&quot;, Courier, monospace;<br>  font-weight: bold;<br>}<br><br>footer p {<br>  font-size: 15px;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rnqpcQX5v-38euTYXDet8g.png" /></figure><p>As you can see, now we added some CSS to our HTML. The problem is that, most of the times you will have 100+ same p, h1, h2, … etc elements, and you might add some kind of style to only one or 10–15 of them. In those cases, we can use <strong>ID</strong> — if you want to add a design for one element or <strong>class </strong>— if you want to add a specific design for group of elements.</p><p>Use case of ID in HTML and CSS:<br> &lt;p id=”author”&gt;Posted by Alex Shon Parker&lt;/p&gt; -- you can give an appropriate ID name to your HTML element just like how I did in the example. And use this ID in your CSS like below:</p><pre>#author {<br>  font-style: italic;<br>  font-family: serif;<br>}</pre><p>Use case of Class in HTML and CSS:</p><pre>&lt;!-- HTML File --&gt;<br>&lt;body&gt;<br>    &lt;h1&gt;The Capital City of England - London.&lt;/h1&gt;<br>    &lt;p id=&quot;author&quot;&gt;Posted by Alex Shon Parker&lt;/p&gt;<br>    &lt;p class=&quot;main_text&quot;&gt;<br>      London, the capital of England and the United Kingdom, is a 21st-century<br>      city with history stretching back to Roman times. At its centre stand the<br>      imposing Houses of Parliament, the iconic ‘Big Ben’ clock tower and<br>      Westminster Abbey, site of British monarch coronations. Across the Thames<br>      River, the London Eye observation wheel provides panoramic views of the<br>      South Bank cultural complex, and the entire city.<br>    &lt;/p&gt;<br>    &lt;footer&gt;<br>      &lt;p class=&quot;main_text&quot;&gt;<br>        If you want to learn more about other cities, please subscribe!.<br>      &lt;/p&gt;<br>    &lt;/footer&gt;<br>  &lt;/body&gt;</pre><pre>/* CSS File */<br><br>.main_text {<br>  color: red;<br>  font-family: Times;<br>}</pre><p>So, you can access your class in CSS by writing dot before the classname like: .class_name{declaration_block} .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UxATz70CE7EWVvu6tGHgeQ.png" /><figcaption>Final Result</figcaption></figure><p>I hope you understand how to use class and IDs. I just showed you very few and very simple examples. But, believe me, you will use same stuff for both simple and complex projects. <br>Thank you for your time and attention.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df8ff0ca907d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Development Challenge (Day3)]]></title>
            <link>https://medium.com/@adhambekyashnarbekov007/web-development-challenge-day3-9d160206de87?source=rss-11d3755a84aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d160206de87</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Adkhambek Yashnarbekov]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 05:57:20 GMT</pubDate>
            <atom:updated>2025-12-15T05:58:42.248Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intruduction to CSS</h3><p>Today we are gonna be learning what is CSS and why we need to use it?</p><p>CSS stands for — <strong>C</strong>ascading <strong>S</strong>tyle <strong>S</strong>heets. CSS describes the visual style and presentation of the content written in HTML. CSS consist of countless properties that developers use to format the content: properties about the font, text, spacing, layout, etc. Example CSS:</p><pre>h1 {<br>  color : blue;<br>  text-align: center;<br>  font-size: 20 px;<br>}</pre><p>In this CSS, h1 is the <strong>selector</strong> because it selects all h1 elements in the HTML. The 3 lines of code inside the curly brackets is called <strong>declaration block</strong>, because it declares the style of the selected element(s). Color, text-align, font-size … are <strong>properties</strong> and blue, center, 20 px are <strong>values</strong> of those properties respectively.</p><h4>Inline, Internal, External CSS</h4><p><strong><em>In inline CSS</em></strong>, we write the inside the HTML elements. Although, it seems a little bit convinient at first, when you were working with big projects, you may struggle a lot and spend more time just to write HTML &amp; CSS. So, please don’t write your websites with inline CSS. DON’T DO IT. Even though, it is not a good practice, it is better to know how inline css works:</p><pre>&lt;!-- HTML without CSS  --&gt;<br>&lt;p&gt;The Capital City of England - London.&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ePOF1S7sS3rqMftlZ-U3g.png" /><figcaption>Result</figcaption></figure><pre>&lt;!-- HTML with Inline CSS  --&gt;<br>&lt;p<br>      style=&quot;<br>        color: blue;<br>        font-size: medium;<br>        font-family: &#39;Courier New&#39;, Courier, monospace;<br>      &quot;<br>    &gt;<br>      The Capital City of England - London.<br>    &lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hgUKAUihI4p5ksoFcZa8lA.png" /><figcaption>Result</figcaption></figure><p><strong><em>Internal CSS</em></strong> — if you write CSS inside the HTML file, you can call it internal CSS. You may ask, now HTML and CSS files are separated, can’t we just write HTML and CSS together like that? The answer is NO. BIG NOOO. Because, imagine you have 500 lines of CSS and 300 lines of HTML. You might get stuck at some point if you have hundrends of lines of HTML and CSS code coming together. But, in seek of knowledge, I’d like to show how internal CSS works:</p><pre>&lt;!-- ONLY HTML --&gt;<br><br>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;title&gt;Document&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;p&gt;The Capital City of England - London.&lt;/p&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CSznvnvuciwYRn1b6M86aQ.png" /><figcaption>Result</figcaption></figure><p>We write internal CSS using &lt;style&gt;&lt;/style&gt; element. After adding CSS internally:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;title&gt;Document&lt;/title&gt;<br>    &lt;style&gt;<br>      p {<br>        color: #293435;<br>        font-size: medium;<br>        font-family: &quot;Courier New&quot;, Courier, monospace;<br>        font-weight: bold;<br>      }<br>    &lt;/style&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;p&gt;The Capital City of England - London.&lt;/p&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vMgGhPTI3jXjyVj9JnofLQ.png" /><figcaption>Result</figcaption></figure><p><strong><em>External CSS</em></strong> — finally we come to the right place. Unlike inline and internal CSS, we write our CSS into separate .css file. The main advantage of external CSS is that you can easily change anything and work separately for your HTML and CSS in the real projects. As a result, you projects will be more cleaner, beautiful, error-free and easy-to-understand for other developers.</p><p>To write externall CSS, first you need to open a new css. Most of the times, developers use common names for their html and css files: index.html and style.css . You can use those names if you want to follow the tradition. After opening a new css file, move all of your internal css code inside your HTML file to your brand new CSS file.</p><pre>/* style.css */<br><br>p {<br>  color: #293435;<br>  font-size: medium;<br>  font-family: &quot;Courier New&quot;, Courier, monospace;<br>  font-weight: bold;<br>}</pre><p>Delete all the CSS from your HTML file and run it. Do you see any changes? No? Of course not. How would you? Your HTML has absolutely no idea that your CSS even exists. That’s like asking your friend to bring your keys but never telling them where the keys are. Good luck with that. If you want your HTML to actually use the CSS you wrote, you have to tell it where the CSS lives. Until you connect them, your styles are just sitting there, beautifully ignored.</p><p>To connect them, we use &lt;link&gt; element. But, don’t confuse with the name “link” and think that it is used for creating web links. No, no, no. Most of the time, you use &lt;link&gt; element to connect your HTML with the CSS.</p><pre>&lt;!-- index.html --&gt;<br>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;title&gt;Document&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;./location/of_your/style.css&quot; /&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;p&gt;The Capital City of England - London.&lt;/p&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><pre>/* style.css */<br>p {<br>  color: #293435;<br>  font-size: medium;<br>  font-family: &quot;Courier New&quot;, Courier, monospace;<br>  font-weight: bold;<br>}</pre><p>As you can see, I succesfully connected the HTML file with CSS. Now it works perfectly fine and browser will be able to render all the styles written in my CSS file.</p><p>Thank you for your attention and time. I hope you find it interesting and helpful. If you wanna learn more about web dev, please go my profile, where I posted a lot of interesting articles about web development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d160206de87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algorithms and Data Structures in Python (Day1)]]></title>
            <link>https://medium.com/@adhambekyashnarbekov007/algorithms-and-data-structures-in-python-day1-064f6d4f3936?source=rss-11d3755a84aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/064f6d4f3936</guid>
            <category><![CDATA[big-o-notation]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[time-complexity]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Adkhambek Yashnarbekov]]></dc:creator>
            <pubDate>Thu, 23 Oct 2025 18:37:18 GMT</pubDate>
            <atom:updated>2025-12-21T18:07:16.644Z</atom:updated>
            <content:encoded><![CDATA[<h3>Big-O</h3><p><strong>Time Complexity</strong> — if the priority is time complexity, your code should spend as less time as possible to solve the problem.</p><p><strong>Space Complexity </strong>— if the priority is space complexity, your code should use as less space in memory as possible to solve the problem.</p><p><strong>Big-O </strong>— or worst case scenario. When we are dealing with problems, you will see three Greek letters:</p><p><strong>Ω —</strong> Omega → best case scenario</p><p><strong>Θ — </strong>Theta → medium case scenario</p><p><strong>Ο — </strong>Omecron →worst case scenario</p><p>Let’s say, you have a list [1,2,3,4,5,6,7] and you are asked to find the number <strong>n</strong> in your list using for loop. If n is equal to 1, for loop will find it immediately because it is starting element of the list. So this is your best case scenario which is <strong>Ω. </strong>But if n is equal to 7, your for loop need to check every number in the list because n is last element of the list. This is your worst case scenario which is also called <strong>Big-O</strong>.<strong> </strong>We have a medium case scenario too. If number is equal to 4, your code probably find the result by checking half of the elements in the list. So, 4 will be your medium case scenario which is <strong>Θ</strong>.</p><h4><strong>O(n) — explanation by example:</strong></h4><pre>def print_nums(n:int):<br>    for i in range(n):<br>        print(i)<br><br>print_nums(10)<br><br># output: 0 1 2 3 4 5 6 7 8 9</pre><p>Task was create a function which prints numbers from 0 to n. And our function need to print every number from 0 to n. Let’s say if the function gets 10, it will print from 10 numbers, if it gets 1 million, it should print 1 millon numbers. In short, O(n) is linear function — as it gets bigger input, it spends more time to calculate.</p><h4>Drop constants</h4><p>Let’s change the function above to this:</p><pre>def print_nums(n:int):<br>    for i in range(n):<br>        print(i)<br>    for j in range(n):<br>        print(j)<br><br>print_nums(10)<br><br># output: 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9</pre><p>As you can, now, our function printed 20 numbers, two times more than previous output. You might be wondering like:</p><p>Will it correct if we write the O(2n)? In those cases we need to drop the constant number and simply write O(n) again. It doesn’t matter if it is O(100000n) or O(2n) we need to drop constan number and write O(n) only.</p><h4>O(n²) — explanation by example:</h4><p>In previous examples, you already seen linearly growing <strong>O</strong>. But it can be exponential too. Look at the example below:</p><pre>def print_nums(n:int):<br>    for i in range(n):<br>        for j in range(n):<br>            print(i, j)<br><br>print_nums(10)<br><br>#output will like:<br># 00 01 02 .........96 97 98 99</pre><p>Now, instead of printing 10 numbers, it prints 100 numbers — because 100 is 10 squared. Therefore, the time complexity changes from <strong>O(n)</strong> to <strong>O(n²)</strong>.</p><h4>Drop Non-dominants</h4><p>Remember we dropped constants in <strong>O(n)</strong>. We need to do simillar stuff for O(n^m) too. Let’s see the example so that you will get the idea:</p><pre>def print_nums(n:int):<br>    for i in range(n):<br>        for j in range(n):<br>            print(i, j)<br>    for k in range(n): <br>        print(k)<br><br>print_nums(10)<br><br>#output will be like:<br># 00 01 02 .........96 97 98 99 0 1 2 3 4 5 6 7 8 9</pre><p>Now the function’s complexity looks like <strong>O(1⁰²) + O(10)</strong> — in other words, <strong>O(n²) + O(n)</strong>. We can write this as <strong>O(n² + n)</strong>. However, as <strong>n</strong> becomes very large, the <strong>n²</strong> term grows much faster than <strong>n</strong>. That means the <strong>n²</strong> part dominates the total time, and the <strong>+ n</strong> part becomes negligible. So when analyzing time complexity, we focus only on the <strong>dominant term</strong> and drop the smaller ones.<br> Therefore: <strong>O(n² + n)</strong> simplifies to <strong>O(n²)</strong>.</p><h4>O(1) — most efficient Big(O)</h4><p>When you are writing an algorithm for a problem, you need to think as much as you can to make time complexity <strong>O(1)</strong>. By doing that you will make your program much master. Below, you can see the difference between <strong>O(n²)</strong>,<strong> O(n)</strong> and <strong>O(1)</strong> in terms of time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*0wNUQDO8zRPOnsrU.png" /></figure><p>O(1) will do everything in constant amount of time. Let’s look at the code and you will understand everything:</p><pre>#Example 1<br>def print_num(n:int):<br>    return n # Time complexity = O(1)<br><br>#Example 2<br>def print_num(n:int):<br>    return n+n # Time complexity = O(1)<br><br>#Example 3<br>def print_num(n:int):<br>    return n+n+n+n+n+n+n+n # Time complexity = O(1)<br><br>#Example 4<br>def print_num(n: int):<br>    return n *(3 + n**2)</pre><p>The time complexity is the same for all these functions because each one performs only a <strong>fixed number of operations</strong> on a <strong>single input value</strong>. For example, in <strong>Example 2</strong>, the function just calculates n + n, which is 2n.<br> In <strong>Example 3</strong>, it performs several additions like n + n + n + n + n + n + n + n, which gives 8n. Even though there are more arithmetic operations, the number of steps doesn’t depend on how large n is — it’s always the same number of steps. Now, in <strong>Example 4</strong>, the function computes (3 - n**2) * n, which gives a result like n³ + 3n. This produces a much larger <strong>output value</strong>, but that doesn’t affect the <strong>time complexity</strong>. The computer still just performs a few arithmetic operations, regardless of how big n is. So even though the result might look large, the amount of work the function does doesn’t increase with n. That’s why it’s still considered <strong>O(1)</strong> — constant time.</p><h4>O(log(n)) — second most efficient Big(O)</h4><p>To explain <strong>O(log(n)) </strong>— I need a list of numbers from 1 to 8:</p><pre>{1, 2, 3, 4, 5, 6, 7, 8}</pre><p>Imagine you have a list of numbers from <strong>1 to 8</strong>, and you choose one number secretly. My task is to find your number using an <strong>O(log n)</strong> search — the same approach computers use in a <strong>binary search</strong>. Here’s how it works step by step:</p><ol><li>I first ask if your number is <strong>between 5 and 8</strong>.<br> You say <strong>no</strong>, so I eliminate that half and continue searching in the range <strong>1 to 4</strong>.</li><li>Next, I ask if your number is <strong>between 3 and 4</strong>.<br> You again say <strong>no</strong>, so I remove those and continue with <strong>1 and 2</strong>.</li><li>Finally, I ask if your number is <strong>2</strong>.<br> You say <strong>yes</strong>, and boom — I’ve found your number!</li></ol><p>In total, it took <strong>3 tries</strong> to find your number.<br> That’s exactly how a computer performs a <strong>binary search</strong>, cutting the search space in half each time. Since log⁡2(8) = 3, it means that in the worst case, only <strong>3 steps</strong> are needed to find an item among <strong>8 elements</strong>.</p><h3>Different terms for inputs — exemptions</h3><p>Now, to make you more clear for you I decided to tell some of the important stuff which you might get confused if you don’t learn now:</p><pre>def function1(a,b):<br>    for i in range(a):<br>        print(i)<br>    <br>    for j in range(b):<br>        print(j)<br><br>def function2(a,b):<br>    for i in range(a):<br>        for j in range(b):<br>            print(i, j)</pre><p>I want to ask you what will be Big(O) for function1 and function2?</p><p>Pay attention, now we are working with two different numbers. We can’t just say like:</p><pre>                             ❌ INCORRECT ❌<br><br>#function1:<br>O(a) = O(n) and O(b) = O(n);  So O(n) + O(n) = O(2n) = O(n);<br><br>#function2:<br>OO(a) = O(n) and O(b) = O(n);  So O(n) * O(n) = O(n^2);<br></pre><p>Nooooo nooo nooo. Do not calculate like that. We you have two or more variables in your function you can’t assume all of them as O(n). You need to calculate them separately:</p><pre>                                ✅ Correct ✅ <br>#function1:<br>O(a) + O(b) = O(a+b)<br><br>#function2:<br>O(a)*O(b) = O(a*b)</pre><h4><strong>Big(O) of Lists:</strong></h4><p>Let’s calculate the Big(O) also for lists. It is somehow different than what you saw before. First of all let’s look at the example code below:</p><pre>my_list = [1,2,3,4,5]<br>my_list.pop()<br>print(my_list)<br>my_list.append(5)<br>print(my_list)</pre><p>with <strong>pop() </strong>method I simply remove the last element in my list. Similarly, with <strong>append()</strong> method I can add a number to the end of the list. As you can see, we are working only with end of the list — we are not changing the indexes of elements. This is because time complexity of <strong>pop()</strong> and <strong>append() </strong>will be just <strong>O(1)</strong>.</p><p>But be careful with <strong>lists</strong> — there are some other important things to consider when calculating their <strong>time complexity</strong>. For example, what if you want to <strong>remove an element at a specific index</strong>, or <strong>insert a number at a specific position</strong>?</p><pre>#example1<br>my_list.pop(0)<br>print(my_list)<br><br>#example2<br>my_list.insert(0,1)<br>print(my_list)<br><br>#example3<br>my_list.insert(2,&quot;Hi&quot;)<br>print(my_list)</pre><p>For example, in <strong>Example 1</strong>, I removed the element at <strong>index 0</strong>. When the first element is removed, all the other elements automatically shift <strong>one position backward</strong> to fill the gap. So, even though we only deleted one element, the computer still had to <strong>move every other element</strong>, which takes time. That’s why the time complexity is <strong>O(n)</strong>.</p><p>The same logic applies to <strong>Examples 2 and 3</strong>. Just like in Example 1, the computer still needs to <strong>adjust the indexes</strong> after an insertion or deletion. Therefore, the time complexity in those cases is also <strong>O(n)</strong>.</p><p>I want to conclude the topic with a quick review:<br>Let’s say n = 1000</p><ul><li><strong>O(1) = 1 → Constant time — the most efficient Big(O).</strong></li><li><strong>O(log(n)) = 10 → Divide and Conquer — second most efficient Big(O)</strong></li><li><strong>O(n) = 1000 → Proportional to n</strong></li><li><strong>O(n²) = 1,000,000 → loop within a loop</strong></li></ul><p>Also, I want to share <a href="https://www.bigocheatsheet.com/">a useful link</a> with you so that you can check out other types of Big(O)s.</p><p>So, that’s all for today. Thank you very much for your attention. If you find the article useful, please press clap button and mentally support me in this challenge so that I will be able to finish it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=064f6d4f3936" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Development Challenge (Day2)]]></title>
            <link>https://medium.com/@adhambekyashnarbekov007/web-development-challenge-day2-8fad2be73b06?source=rss-11d3755a84aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fad2be73b06</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[semantic-html]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Adkhambek Yashnarbekov]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 17:17:02 GMT</pubDate>
            <atom:updated>2025-10-23T02:04:31.969Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to HTML 2</h3><p>Today, we are gonna be continuing HTML basics. Before juping straightly to the new topic, I would strongly advice to revice Day1 so that you can get more from the tutorials.</p><h4>Hyperlinks</h4><p>When you open any web page on the web, you may see at least one link to something. Now, you will also learn how to add link(s) on your web applications. Formula is very easy:</p><pre>&lt;a href = &quot;https://space/for//your/link.com&quot;&gt;The text you want to show as a link: &lt;a/&gt;<br></pre><p>Element <strong>&lt;a&gt;…&lt;a/&gt;</strong> comes from a word <strong>anchor</strong> — a technical term for link. <strong>href </strong>is the attribute of the anchor element and if you put a link inside of <strong>href</strong>, it will render as a link in the browser.</p><p>By the way, you can use anchor element inside of text elements: h1…h6, p and so on. Code example:</p><pre>&lt;p&gt; You can find more about me at this &lt;a href=&quot;https://myresume.com&quot;&gt;page&lt;a&gt;&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*WCTHArA3A0sz-FRYyHWLbQ.png" /><figcaption>result of the HTML code above</figcaption></figure><p>But we have a problem here. If user opens the link in our page, he/she will automatically be directed to the new page. However, in some cases we want them to stay in our webpage while opening another link. You can add this functionality to your link with one attribute names target.</p><pre>&lt;a href=&quot;https://myresume.com&quot; target = &quot;_blank&quot;&gt;page&lt;a&gt;</pre><p>If you choose _blank for target, user will open the new link while staying at your webpage.</p><p>We use anchor not only for directing users to another website, but also directing them in different pages of our website. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/0*8fPcYdwu9cnc6kn0.png" /></figure><p>You might also have home, about, products …. etc, pages of website, right? So, you need to make some anchors for those pages also so it will be more comfortable for users to navigate through your website. How you can do so? It is very easy. Instead putting link for another website, you need to put a link to the another html file:</p><pre>&lt;a href=&quot;path/to/index.html&quot; target = &quot;_blank&quot;&gt;page&lt;a&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mOiJp3wDr-Zp-v7ebNtiA.png" /></figure><p>As you can see,now the link is directing user to index.html which is another page of the same website.</p><h4>Structuring our Page:</h4><p>If you are still writing HTML code without any structure, you will waste a lot of time in long run. Look at the picture below. This is explains exactly how websites are look like by comparing to human body:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/0*XHTgaYaiU8MwM_HD" /></figure><p>HTML’s main function is to build a well-connected structure (or “bones”) that makes it much easier to manage other elements like CSS and JavaScript. If you don’t have a well-structured foundation, it will be much harder to create a beautiful website. So, here is a well-structured HTML code example — simply remember this structure and apply it to your own projects.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;title&gt;Well-Structured Semantic HTML&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;!-- Website Header --&gt;<br>    &lt;header&gt;<br>      &lt;nav&gt;<br>        &lt;!-- Navigation links go here --&gt;<br>      &lt;/nav&gt;<br>    &lt;/header&gt;<br><br>    &lt;!-- Main Content Area --&gt;<br>    &lt;main&gt;<br>      &lt;!-- Main Article Section --&gt;<br>      &lt;article&gt;<br>        &lt;header&gt;<br>          &lt;!-- Article header content (e.g., title, author, date) --&gt;<br>        &lt;/header&gt;<br><br>        &lt;!-- Main article content goes here --&gt;<br><br>        &lt;footer&gt;<br>          &lt;!-- Article footer content (e.g., tags, related links) --&gt;<br>        &lt;/footer&gt;<br>      &lt;/article&gt;<br><br>      &lt;!-- Sidebar / Related Content --&gt;<br>      &lt;aside&gt;<br>        &lt;!-- Related information, ads, tips, or links --&gt;<br>      &lt;/aside&gt;<br>    &lt;/main&gt;<br><br>    &lt;!-- Website Footer --&gt;<br>    &lt;footer&gt;<br>      &lt;!-- Page footer content (e.g., contact info, copyright) --&gt;<br>    &lt;/footer&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Most of the modern websites were built using this structure. I already explained what you should write in every step in the code. Please take a close attention and implement it your code.</p><h4><strong>Semantic HTML</strong></h4><p><strong>Semantic elements = elements with a meaning</strong>.</p><pre>&lt;!-- Simple HTML --&gt;<br>&lt;div&gt;Hello, my name is &lt;b&gt;John&lt;/b&gt;&lt;/div&gt;<br>  &lt;div&gt;Hello, my name is &lt;i&gt;Elizabetta&lt;/i&gt;&lt;/div&gt;<br></pre><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*CZ0XPcke56wz0KZxdwgJTw.png" /></figure><pre> &lt;!-- Semantic HTML--&gt;<br> &lt;p&gt;Hello, my name is &lt;strong&gt;John&lt;/strong&gt;&lt;/p&gt;<br>  &lt;p&gt;Hello, my name is &lt;em&gt;Elizabetta&lt;/em&gt;&lt;/p&gt;</pre><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*XBkiWDgVM_32D9afUO30HA.png" /></figure><p>As you can see, both pieces of code produce the same visual result — but only the second one is semantic. In the second example, we use elements like <strong>&lt;p&gt;</strong> instead of<strong> &lt;div&gt;</strong>, <strong>&lt;strong&gt;</strong> instead of <strong>&lt;b&gt;</strong>, and <strong>&lt;em&gt;</strong> instead of <strong>&lt;i&gt;</strong>. The difference is that semantic elements give meaning to the content. For example, <strong>&lt;strong&gt;</strong> tells browsers and other developers that the text is important, while <strong>&lt;em&gt;</strong> shows that the text should be emphasized. So even though the appearance might be the same, semantic HTML helps browsers, search engines, and other programmers understand the purpose of each part of your content — not just how it looks.</p><p>Semantic HTML means using HTML tags that have meaning — tags that describe what the content is, not just how it looks.</p><p>For example:</p><ul><li><strong>&lt;header&gt;</strong> → the top section of a page or article</li><li><strong>&lt;nav&gt;</strong> → a group of navigation links</li><li><strong>&lt;main&gt;</strong> → the main content of the page</li><li><strong>&lt;article&gt;</strong> → an independent piece of content</li><li><strong>&lt;section&gt;</strong> → a thematic grouping of content</li><li><strong>&lt;footer&gt;</strong> → the bottom section with closing info</li></ul><p><strong>Using semantic HTML helps:</strong></p><ol><li>Browsers understand your content better.</li><li>Search engines (like Google) index your pages more accurately (SEO).</li><li>Screen readers make your site more accessible for people with disabilities.</li><li>Developers easily read and maintain the code.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fad2be73b06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Development Challenge (Day1)]]></title>
            <link>https://medium.com/@adhambekyashnarbekov007/web-development-challenge-day1-2432c44b11af?source=rss-11d3755a84aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/2432c44b11af</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[semanticweb]]></category>
            <dc:creator><![CDATA[Adkhambek Yashnarbekov]]></dc:creator>
            <pubDate>Sun, 19 Oct 2025 12:51:20 GMT</pubDate>
            <atom:updated>2025-10-19T12:51:20.415Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to HTML</h3><p>HTML — Hyper Text Markup Language. It is not a programming language. It is a markup language that we can use to structure and describe the content of the webpage.</p><p>HTML consist of elements that describles different types of content: paragraph, headings, images, videos, links etc…</p><p>HTML consist of tags to present different types of content. For example if you want to write a paragraph you need a &lt;p&gt;….&lt;/p&gt; tag:</p><pre>&lt;p&gt;<br>Lorem Ipsum is simply dummy text of <br>the printing and typesetting industry. <br>Lorem Ipsum has been the industry&#39;s standard dummy text ever Z<br>since the 1500s, when an unknown printer took a galley of type <br>and scrambled it to make a type specimen book. It has survived not <br>only five centuries, but also the leap into electronic typesetting, <br>remaining essentially unchanged. It was popularised in the 1960s <br>with the release of Letraset sheets containing Lorem Ipsum passages, <br>and more recently with desktop publishing software like Aldus PageMaker <br>including versions of Lorem Ipsum.<br>&lt;/p&gt; <br><br>&lt;!-- <br>&lt;p&gt; is opening tag<br><br>&lt;/p&gt; is closing tag <br>--&gt;<br><br>&lt;!-- <br>BTW, you can use this to write comment,<br>or simply disable your html code from rendering.<br>You don&#39;t need to write all comment symbols one by one.<br>Instead, just select the text you want to comment and press <br>Command + / (MacOS)<br>Ctrl + /  (Windows)<br>--&gt;<br></pre><h4>Common HTML Document Structure:</h4><p>We need this common HTML document structure so browsers know how to correctly read, interpret, and display the webpage’s content. It defines the document type, language, metadata, and main content area.<br>You can write this common HTML structure in seconds. Open VS code and create a new HTML file. Then just write ! and press tab and boom VS code automatically write full structure to you.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;title&gt;Document&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    <br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h4><strong>Text Elements</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*bnSM3dh5cQqu9d5KuDQx2g.png" /><figcaption>Headings from h1 to h6</figcaption></figure><p>As you can see the picture above, there are different sizes of headings from h1: biggest to h6: smallest. But keep in mind that, each web page should has only one <strong>h1 </strong>element. Of course, you can write multiple h1, but it is good practice to use only one. However, you can use other <strong>h2, h3, h4, h6, p</strong> as much as you want.</p><pre>        &lt;h1&gt;The basic language of the Web: HTML&lt;/h1&gt;<br>        &lt;h2&gt;The basic language of the Web: HTML&lt;/h2&gt;<br>        &lt;h3&gt;The basic language of the Web: HTML&lt;/h3&gt;<br>        &lt;h4&gt;The basic language of the Web: HTML&lt;/h4&gt;<br>        &lt;h5&gt;The basic language of the Web: HTML&lt;/h5&gt;<br>        &lt;h6&gt;The basic language of the Web: HTML&lt;/h6&gt;</pre><h4>Bold &amp; Italic</h4><p>In order to make the text or part of the text bold you can use <strong>&lt;strong&gt;…&lt;/strong&gt;</strong> element. You may use &lt;b&gt; …&lt;/b&gt; also, but is has no sementic meaning. So it is always good practice to use <strong>&lt;strong&gt;…&lt;/strong&gt; .</strong></p><pre>&lt;p&gt;<br>A &lt;strong&gt;front-end&lt;/strong&gt; developer builds the user-facing part of a website, <br>while a &lt;strong&gt;back-end&lt;/strong&gt; developer works on the server-side logic, databases, and core systems. <br>A &lt;strong&gt;full-stack&lt;/strong&gt; developer is proficient in both, capable of handling all aspects of an application from the user interface to the server and database.  <br>&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PPY38FzM_2Phe9z0TKUhiw.png" /><figcaption>result of the HTML code above</figcaption></figure><p>In order to make the text or part of the text italic you can use <strong>&lt;em&gt;…&lt;/em&gt;</strong> element. You may use &lt;i&gt; …&lt;/i&gt; also, but, as I said before, is has no sementic meaning. So it is always good practice to use <strong>&lt;em&gt;…&lt;/em&gt; </strong>which stands for emphasise</p><pre>&lt;p&gt;<br>A &lt;em&gt;front-end&lt;/em&gt; developer builds the user-facing part of a website, <br>while a &lt;em&gt;back-end&lt;/em&gt; developer works on the server-side logic, databases, and core systems. <br>A &lt;em&gt;full-stack&lt;/em&gt; developer is proficient in both, capable of handling all aspects of an application from the user interface to the server and database.  <br>&lt;/p&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Pi3qTa57EvRpC1aPGjRbg.png" /><figcaption>result of the HTML code above</figcaption></figure><h4><strong>Ordered and Unordered List</strong></h4><p>To make your web pages more attractive and easy-to-follow, you can use lists. There are two types of lists on HTML. First one is ordered list and second one is unordered list.</p><p>As its name suggest, In ordered list, list items will be redered as:<br>1. — — — — — — — —</p><p>2. — — — — — — — —</p><p>3. — — — — — — — —</p><p>But in unorderd list, list items will be rendered as:</p><ul><li>_______________</li><li>_______________</li><li>_______________</li></ul><p>Below I am going to show you the code of ordered and unordered list so that you can use and practice on your own:</p><pre>&lt;p&gt;In sports, each game is made up of 3 key parts:&lt;/p&gt;<br>&lt;ol&gt; &lt;!--- ordered list opening tag --&gt;<br>  &lt;li&gt;The preparation and training&lt;/li&gt;<br>  &lt;li&gt;The actual match or competition&lt;/li&gt; &lt;!--- li stands for list item --&gt;<br>  &lt;li&gt;The post-game analysis and recovery&lt;/li&gt; <br>&lt;/ol&gt; &lt;!--- ordered list closing tag --&gt;<br>&lt;p&gt;You can learn more at the official Olympic website or your favorite sports news outlet.&lt;/p&gt;<br><br>&lt;h3&gt;Why should you play sports?&lt;/h3&gt;<br>&lt;p&gt;<br>  There are countless reasons to get involved in sports. Here are 5 of them:<br>&lt;/p&gt;<br>&lt;ul&gt; &lt;!--- unordered list opening tag --&gt;<br>  &lt;li&gt;To stay healthy and fit&lt;/li&gt;<br>  &lt;li&gt;To develop teamwork and leadership skills&lt;/li&gt;<br>  &lt;li&gt;To relieve stress and improve mental health&lt;/li&gt;<br>  &lt;li&gt;To make new friends and build connections&lt;/li&gt;<br>  &lt;li&gt;To have fun and enjoy competition 🏅&lt;/li&gt;<br>&lt;/ul&gt; &lt;!--- unordered list closing tag --&gt;</pre><p>Result of the code above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P-_J6J9DRXs1q0lZpugI0A.png" /></figure><h4>Images and Attributes</h4><p>How to show images in browser with HTML? It is very easy. We use <strong>&lt;img/&gt;</strong> element to show images in bowser. But <strong>&lt;img/&gt;</strong> element is a special element because it doesn’t have closing bracket.</p><pre>&lt;img src = &quot;path/to/img/img.png&quot; alt = &quot;alternative_text&quot; width = 500 height =200 /&gt;<br></pre><p>The code above is example for using <strong>&lt;img/&gt;</strong> element in HTML. In the code, <strong>src, alt, width, height </strong>are attributes of img element. <strong>Width</strong> and<strong> height</strong> are demensions of the image while <strong>src</strong> stands for source — path to the image, and <strong>alt </strong>stands for — alternative text: if browser can’t render the your image for some reasons, it will show user alternative text just like above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*Y2mnS9dNIhZz7eOrzAXlWw.png" /></figure><p>Additionally, there are some users who doesn’t read the who article and use screen reader instead, and if you specify the name of the image, browser will read the name of the image instead.</p><p>So, that’s it for day 1. We will continue other stuff related to HTML on day2 of the challenge. Thank you for your attention and time. I hope you like it the article. If so, please clap button so that I will get motivated and continue to publish new articles about web.</p><p>See you in Day2.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2432c44b11af" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>