<?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 Brajkishor Singh Tomar on Medium]]></title>
        <description><![CDATA[Stories by Brajkishor Singh Tomar on Medium]]></description>
        <link>https://medium.com/@b.ktomar98?source=rss-e97b25a64aca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NL973-IMWTJM-7SU</url>
            <title>Stories by Brajkishor Singh Tomar on Medium</title>
            <link>https://medium.com/@b.ktomar98?source=rss-e97b25a64aca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:33:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@b.ktomar98/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[The Allure of Words: How Writing Becomes an Obsession]]></title>
            <link>https://medium.com/@b.ktomar98/the-allure-of-words-how-writing-becomes-an-obsession-78f09353e7ea?source=rss-e97b25a64aca------2</link>
            <guid isPermaLink="false">https://medium.com/p/78f09353e7ea</guid>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Brajkishor Singh Tomar]]></dc:creator>
            <pubDate>Thu, 23 Nov 2023 09:29:37 GMT</pubDate>
            <atom:updated>2023-11-23T09:30:32.716Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>For many, writing is more than just a skill; it becomes a compelling and consuming passion. The journey from a casual interest in writing to an outright obsession is a fascinating exploration of the human connection with words. In this article, we’ll delve into the various aspects that contribute to the transformation of writing into an all-encompassing obsession.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CYMHacG02PbT_NmS3i1OeQ.jpeg" /></figure><p><strong>1. The Power of Expression:</strong><br>At its core, writing serves as a powerful means of expression. As individuals discover the ability to articulate their thoughts, emotions, and experiences through words, the allure of this expressive outlet intensifies. Writing becomes a tool for self-discovery and a medium for conveying the intricacies of the human psyche.</p><p><strong>2. Capturing Moments in Time:</strong><br>Writing has the unique ability to freeze moments in time. Whether through poetry, prose, or journaling, individuals find solace in preserving their experiences and emotions on paper. The act of capturing moments becomes a ritual, and the compulsion to document every nuance of life propels writing into an obsession.</p><p><strong>3. The Pursuit of Mastery:</strong><br>As with any art form, the pursuit of mastery fuels the obsession. Writers often find themselves engrossed in refining their craft, experimenting with different styles, and tirelessly seeking perfection in their prose. The journey toward mastery becomes a perpetual quest, driving writers to continuously hone their skills.</p><p><strong>4. Escaping Reality:</strong><br>Writing offers a unique form of escapism. For many, creating fictional worlds, characters, and narratives becomes a refuge from the complexities of reality. The immersive nature of storytelling provides an avenue for writers to transcend the boundaries of the mundane and explore the limitless realms of imagination.</p><p><strong>5. Connection with Readers:</strong><br>The prospect of connecting with readers on a profound level propels writing into an obsession. Knowing that words have the power to resonate with others, evoke emotions, and spark introspection creates an insatiable desire to communicate through the written word.</p><p><strong>Conclusion:</strong><br>The journey from casual writing to an all-consuming passion is a testament to the profound impact words can have on individuals. Writing, in its various forms, becomes a medium for self-expression, a vehicle for preserving memories, a pursuit of mastery, a means of escape, and a bridge to connect with others. As the boundaries between the writer and the written blur, writing evolves from a hobby to an obsession — an irresistible and fulfilling compulsion that transforms lives. Whether it’s the rhythmic dance of fingers on a keyboard or the gentle scratch of pen on paper, the obsession with writing is an ode to the enduring power of language.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78f09353e7ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Arithmetic Subarrays]]></title>
            <link>https://medium.com/@b.ktomar98/exploring-arithmetic-subarrays-df41f652be19?source=rss-e97b25a64aca------2</link>
            <guid isPermaLink="false">https://medium.com/p/df41f652be19</guid>
            <dc:creator><![CDATA[Brajkishor Singh Tomar]]></dc:creator>
            <pubDate>Thu, 23 Nov 2023 09:10:33 GMT</pubDate>
            <atom:updated>2023-11-23T09:10:33.514Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*hO1Sbm1h-Cfyxcqmygv7DQ.png" /></figure><p><strong>Introduction:</strong> Arithmetic subarrays play a crucial role in various computational tasks. This article explores a Java solution that checks whether given subarrays within an array form arithmetic sequences. We will break down the code, analyze its components, and discuss its time and space complexity.</p><p><strong>Code Overview:</strong> The provided Java code consists of a Solution class with three main methods: subArray, checkIfArithmetic, and checkArithmeticSubarrays.</p><pre>class Solution {<br>    static List&lt;Integer&gt; subArray(int start, int end , int[] nums){<br>        List&lt;Integer&gt; subArr = new ArrayList();<br>        for(int index = start ; index &lt;= end ; index++) {<br>            int element = nums[index];<br>            subArr.add(element);<br>        }<br>        return subArr;<br>    }<br><br>    static boolean checkIfArithmetic(List&lt;Integer&gt;subArr) {<br>        Collections.sort(subArr);<br>        int end = subArr.size();<br>        int diff = subArr.get(1) - subArr.get(0);<br>        for(int index = 0 ; index &lt; end-1 ; index++) {<br>            int localDiff = subArr.get(index+1) - subArr.get(index); <br>            if(localDiff != diff) {<br>                return false;<br>            }<br>        }<br>        return true;<br>    }<br><br>    public List&lt;Boolean&gt; checkArithmeticSubarrays(int[] nums, int[] l, int[] r) {<br>        List&lt;Boolean&gt; result = new ArrayList&lt;&gt;();<br>        for(int index = 0 ; index &lt; l.length ; index++) {<br>            List&lt;Integer&gt; subArr = subArray(l[index],r[index],nums);<br>            boolean isArithmetic = checkIfArithmetic(subArr);<br>            ans.add(isArithmetic);<br>        }<br>        return result;<br>    }<br>}</pre><ol><li><strong>subArray:</strong></li></ol><ul><li>This method extracts a sublist from the input array nums based on the provided start and end indices.</li><li>It uses a for loop to iterate through the specified range and adds each element to a new ArrayList, forming the sublist.</li></ul><p><strong>2. checkIfArithmetic:</strong></p><ul><li>This method checks if a given sublist forms an arithmetic sequence.</li><li>It sorts the sublist in ascending order using Collections.sort and then calculates the difference between consecutive elements.</li><li>If the differences are consistent, the sublist is considered an arithmetic sequence.</li></ul><p><strong>3. checkArithmeticSubarrays:</strong></p><ul><li>This main method iterates over pairs of start and end indices provided in arrays l and r.</li><li>For each pair, it calls subArray to obtain a sublist and then checks if it forms an arithmetic sequence using checkIfArithmetic.</li><li>The results are stored in a Boolean list, indicating whether each subarray is arithmetic.</li></ul><p><strong>Time Complexity Analysis:</strong></p><ul><li>The time complexity is influenced by the sorting operation in checkIfArithmetic.</li><li>For each subarray, the sorting operation takes O(n log n) time.</li><li>With q subarrays to check, the overall time complexity becomes O(q * (n log n)).</li></ul><p><strong>Space Complexity Analysis:</strong></p><ul><li>The space complexity is primarily determined by the creation of subarrays.</li><li>The subArray method uses additional space proportional to the size of the sublist.</li><li>The overall space complexity is O(n), where n is the length of the input array nums.</li></ul><p><strong>Conclusion: </strong>Understanding arithmetic subarrays and efficiently identifying them is essential in various algorithmic scenarios. The provided Java solution showcases a systematic approach, leveraging sublist creation and sorting to determine whether given subarrays form arithmetic sequences. Analyzing time and space complexities helps in assessing the efficiency and scalability of the solution for different input sizes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df41f652be19" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>