<?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 Ashish Mukharji on Medium]]></title>
        <description><![CDATA[Stories by Ashish Mukharji on Medium]]></description>
        <link>https://medium.com/@comparedtowhat?source=rss-534103d58bf9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tI_lh1FYWwPKk0tK.</url>
            <title>Stories by Ashish Mukharji on Medium</title>
            <link>https://medium.com/@comparedtowhat?source=rss-534103d58bf9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 13:17:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@comparedtowhat/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[Leetcoding with Chat]]></title>
            <link>https://medium.com/@comparedtowhat/leetcoding-with-chat-2488003e40fd?source=rss-534103d58bf9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2488003e40fd</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[uc-berkeley]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Ashish Mukharji]]></dc:creator>
            <pubDate>Sun, 21 Jan 2024 05:49:34 GMT</pubDate>
            <atom:updated>2024-02-07T00:40:41.153Z</atom:updated>
            <content:encoded><![CDATA[<p>Years ago I received my introduction to advanced algorithms in Turing Award winner Richard Karp’s classic CS 170 course at Cal. I don’t think any of us appreciated how lucky we were. (I had the additional good fortune of hanging out with Prof. Karp at the Berkeley Chess Club.)</p><p>But even the best introduction needs an occasional update.</p><p>Over the past several months, I’ve been getting my daily refresher on Leetcode.com, in close collaboration with my digital tutor ChatGPT 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Foul7yP_GVVYBXhiE59w_Q.png" /></figure><p>It turns out … given the right prompts, Chat is a creative, articulate, and engaging partner! And it does so much more than answer tightly bounded technical questions. Practice (communicating, on my part) makes perfect.</p><p>Here are some ways I engage Chat to jointly expand the frontiers of algorithmic development [yes, that’s called <em>poetic license</em>]:</p><ol><li>“Can you organize all of DSA (Data Structures and Algorithms) into a taxonomy of problems — to organize my study?”</li><li><strong>“Can you ask me some difficult questions about the following code, to test my understanding?”</strong> &lt;paste code&gt; [I typically receive 5–10 questions — so helpful! Chat then assessed my responses and gives detailed feedback, with back-and-forth as necessary.]</li><li>“What’s the point of [this particular statement] in the code?”</li><li>“I didn’t understand. Can you explain in more detail?”</li><li>“Can you insert a few bugs (don’t comment them!), for me to debug?” &lt;insert code&gt;</li><li>“Can you show me the code to solve this problem with bfs? With a stack? With DP?”</li><li><strong>“What are the tradeoffs between dfs and bfs and stack and DP for this problem?”</strong></li><li>“Can this code you just wrote for me be optimized of simplified?” [Very often it can.]</li><li>“Why didn’t you give me the simplified code, the first time I asked?” [More direct than I might be with a real human!]</li><li>[If Chat seems less correct or eloquent than usual, confirm that it’s still in Chat4 mode, and not Chat3.5]</li><li><strong>“Today I’d like to learn about Tries. Can you list ten Leetcode problems, from easy to hard, to take me up the Trie learning curve?”</strong></li><li>[Have a conversation with Chat, as you would with a smart human. It is a great conversationalist, very good at answering broad questions, as well as at picking up nuance and hints.] “Should I spend more time Leetcoding or building projects?”</li><li>And to bring it all back to Prof. Karp’s CS 170, “What’s a good Leetcode problem to solve using Dijkstra’s algorithm?”</li></ol><p>I know this is only a sliver of all the coding assistance that Chat can provide. It’s really been beyond expectations.</p><p>One of the greatest benefits, and this is one of those “you can only learn from experience” insights, is that I’m not at all embarrassed to ask Chat to repeat the explanation it previously gave, and which was replaced in my mental cache by the next exciting algorithm. There’s a profound lack of judgment.</p><p>When forgetting things or repeating mistakes, I don’t fear Chat’s disapproval: “is this guy a programmer or a Swiss cheese from the days when Swiss cheese had holes?!” as I might with a human instructor.</p><p>Side note: Chat has reduced my use of the Google search engine by 70–80% at least. I hope this doesn’t cut into their massage-and-caviar budget.</p><p>Christmas wish (giving Sam/Satya 11 months): a chess tutor of the same caliber, think, Jesse Kraai meets Johan Hellsten. Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2488003e40fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t be afraid to appreciate]]></title>
            <link>https://medium.com/@comparedtowhat/dont-be-afraid-to-appreciate-a15f9c110db4?source=rss-534103d58bf9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a15f9c110db4</guid>
            <category><![CDATA[work]]></category>
            <category><![CDATA[compliments]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Ashish Mukharji]]></dc:creator>
            <pubDate>Wed, 07 Oct 2020 05:44:38 GMT</pubDate>
            <atom:updated>2020-10-07T05:44:38.398Z</atom:updated>
            <content:encoded><![CDATA[<p>A recent newsletter from the wonderful <a href="https://medium.com/u/528e9a6004d8">James Clear</a> included this nugget of wisdom: “Feel compliments as deeply as you feel insults.”</p><p>I like that. I might make myself a fridge magnet out of it.</p><p>And it got me thinking: How often do I receive compliments in the workplace? How often do I hear others receive compliments? And the answer is, not often at all.</p><p>Somewhere on the American workplace timeline, between <em>Mad Men</em> and #MeToo, HR departments wrote the increasingly prescriptive book about what one should and (mostly) should not say to one&#39;s coworkers.</p><h4>Yes we should keep harassment in check</h4><p>The first sexual-harassment lawsuit in the United States was in 1974, four years after <em>Mad Men’s</em> Don Draper ends up at Esalen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DwK0FaKZqo-nbn_s" /><figcaption>Photo by <a href="https://unsplash.com/@robsonhmorgan?utm_source=medium&amp;utm_medium=referral">Robson Hatsukami Morgan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Forty-six years later, I hope that most of us can agree that women (and men) should not have to sleep with their bosses, nor endure sexual harassment, as a condition of keeping their jobs.</p><p>And we can agree that sexual harassment can be entirely verbal, and from the point of view of the perpetrator, that one can get oneself into very hot water with one’s employer, through harassing words alone.</p><p>More awareness all around, and sensitive policies, have resulted in a safer, less threatening, and more supportive workplace for all. (And particularly for women, who have historically suffered much of the burden of sexual harassment.)</p><p>But is that the whole story? When words can give serious offense, there is a risk that <em>any</em> words might give offense, so the less said the better. When compliments (about someone’s dress, or body parts) can give offense, there is a risk that <em>any </em>compliment might give offense, so the fewer given, the better.</p><h4>Don’t throw out the baby …</h4><p>And so it goes: social conversation is reduced to a minimum viable set, because anything you could say might possibly offend someone. The good is thrown out with the bad. We now know that soaps and shampoos and antibiotics kill the good microbiome as well as harmful bacteria; so it is with policies that put even non-harassers in fear of saying anything nice at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r6LAQvjncQPku8R1" /><figcaption>Photo by <a href="https://unsplash.com/@cdc?utm_source=medium&amp;utm_medium=referral">CDC</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’ve been told that I’m good at noticing what people do well. Truth is, I think we all notice. What I think I’m good at is <em>appreciating: </em>speaking up when I see someone work hard to achieve a result, at work, or in the broader world. And I’m not afraid to give voice to my feelings — that’s the difference.</p><h4>Genuine appreciation is your friend</h4><p>In my experience, long-time Silicon Valley workers are so unused to receiving appreciation that any praise, any positivity, can seem suspicious.</p><p>This might be a good time to outline the difference between appreciation (which I recommend), flattery, and sarcasm.</p><ul><li><em>Appreciation</em> is giving voice to your genuine positive feelings about the effort someone made, or the results they achieved. This is done without any ulterior motive, i.e. inside your head, you’re not trying to get them to like you, or to “return the favor.” Bonus if you can do it in a <em>non-violent</em> way, describing your feelings “I really enjoyed your presentation” rather than evaluatively “That was an excellent presentation.”</li><li><em>Flattery</em> is saying something you don&#39;t mean, to get the other person to like you. Unlike appreciation, flattery is fake and icky. Most people will pick up on the fakeness. In some cultures, and for narcissistic people, flattery is desired, but if you ask me, it’s dishonest and best avoided.</li><li>Finally, <em>sarcasm</em> is saying something superficially pleasant when you obviously mean the opposite. It is manipulative and negative and does not belong in the workplace. Unfortunately, some workplaces are so negative that genuine appreciation is mistaken for sarcasm.</li></ul><p>We’re all in this together, for the long term. IMHO, appreciation shows generosity of spirit, and like other forms of generosity, enriches the giver as well as the receiver. In other words, everyone feels better.</p><p>You heard it here: go forth and appreciate! (I promise I won’t complain to HR.)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a15f9c110db4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>