<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Şükran</title>
    <description>The latest articles on DEV Community by Şükran (@sukransinci).</description>
    <link>https://dev.to/sukransinci</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3264437%2Fd139beb0-9a7e-4791-8940-7bdc1141fda7.jpg</url>
      <title>DEV Community: Şükran</title>
      <link>https://dev.to/sukransinci</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sukransinci"/>
    <language>en</language>
    <item>
      <title>DSA Step‑by‑Step — Part 1: Big O</title>
      <dc:creator>Şükran</dc:creator>
      <pubDate>Sun, 02 Nov 2025 14:46:00 +0000</pubDate>
      <link>https://dev.to/sukransinci/dsa-step-by-step-part-1-big-o-38n1</link>
      <guid>https://dev.to/sukransinci/dsa-step-by-step-part-1-big-o-38n1</guid>
      <description>&lt;p&gt;Big O is a way of comparing two sets of code.&lt;br&gt;
And let's say code two accomplish exactly the same thing.&lt;br&gt;
How would you compare one against the other?&lt;br&gt;
Code one might be more readable.&lt;br&gt;
That might be better.&lt;br&gt;
Koto might be more concise, the code might take up fewer lines, and if that's what you're measuring,&lt;br&gt;
then you would say that code two is better.&lt;br&gt;
Big O is a way of comparing code one and code two mathematically about how efficient they run.&lt;br&gt;
In a coding interview, you will absolutely be asked questions about big O.&lt;br&gt;
So let's look at what big O is.&lt;br&gt;
Let's say we have a stopwatch and we run code one, and we start the stopwatch, and it runs for 15&lt;br&gt;
seconds, and we reset the stopwatch, and we run code two, and code two runs a lot longer than 15&lt;br&gt;
seconds.&lt;br&gt;
It runs for a full minute.&lt;br&gt;
Based on this, you would say that code one is better than code two.&lt;br&gt;
You can measure it.&lt;br&gt;
This is called time complexity.&lt;br&gt;
The thing about time complexity that is interesting is that it is not measured in time.&lt;br&gt;
Because if you took the same code and ran it on a computer that runs twice as fast, it would complete&lt;br&gt;
twice as fast.&lt;br&gt;
It doesn't make the code any better.&lt;br&gt;
It just means the computer is better.&lt;br&gt;
So it is measured in the number of operations that it takes to complete something.&lt;br&gt;
And we'll look at examples of that as we go along here.&lt;br&gt;
In addition to time complexity, we measure space complexity.&lt;br&gt;
So let's say that code one.&lt;br&gt;
While it runs very fast comparatively, let's say it takes up a lot of memory when it runs.&lt;br&gt;
And maybe code two, even though that takes much longer to finish.&lt;br&gt;
Maybe it takes up less memory.&lt;br&gt;
If preserving memory space is your most important priority and you don't mind having some extra time&lt;br&gt;
complexity, maybe code two is better.&lt;br&gt;
So when you get into an interview, there's a good chance that you'll be asked questions about time&lt;br&gt;
complexity.&lt;br&gt;
And then they'll say, hey, well, what if space complexity is our main priority?&lt;br&gt;
How would you approach it then?&lt;br&gt;
You have to understand both concepts and be able to address that in the job interview.&lt;br&gt;
With time complexity.&lt;br&gt;
And that is our quick intro to big O.&lt;/p&gt;

</description>
      <category>dsa</category>
    </item>
  </channel>
</rss>
