<?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 afroze on Medium]]></title>
        <description><![CDATA[Stories by afroze on Medium]]></description>
        <link>https://medium.com/@161shaa?source=rss-2e6fdb8f21d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ga7WSD5hPLuu01TXdhQJlg.png</url>
            <title>Stories by afroze on Medium</title>
            <link>https://medium.com/@161shaa?source=rss-2e6fdb8f21d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:16:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@161shaa/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[why does using STRING sometimes throws TIME LIMIT EXCEED]]></title>
            <link>https://161shaa.medium.com/why-does-using-string-sometimes-throws-time-limit-exceed-a6c91008e625?source=rss-2e6fdb8f21d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6c91008e625</guid>
            <dc:creator><![CDATA[afroze]]></dc:creator>
            <pubDate>Mon, 10 Oct 2022 11:42:35 GMT</pubDate>
            <atom:updated>2022-10-10T11:42:35.547Z</atom:updated>
            <content:encoded><![CDATA[<p>→ points that you know , but still a revamp of it</p><ol><li>Strings are immutable( Strings content cannot be changed) and StringBuilder are mutable( String content can be changed)</li></ol><p>2) String are stored in StringPool (as string but not as object)which is in HEAP memory but StirngBuilder are created in heap as an object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WJ-_MOUGbFyBKGodqAyIGw.jpeg" /></figure><p>so when ever we modify the String ,then the another String is been created in StringPool rather than changes being applied on the same String</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I1aVfcOx2h4pq8HXlT2WeQ.jpeg" /></figure><p>but StringBuilder creates a single string at time of object instantiation and does its modification to the object with the same string only …</p><p>hence for huge test case Strings are not preferable and mostly it leads to TIME LIMIT EXCEEDED for competitive type of problems</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6c91008e625" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>