<?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"><channel><title><![CDATA[Untitled Publication]]></title><description><![CDATA[Untitled Publication]]></description><link>https://blog.binayachaudari.com.np</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 11:57:55 GMT</lastBuildDate><atom:link href="https://blog.binayachaudari.com.np/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[I Took Amazon’s SDE II OA After 2 Weeks of Prep — Here’s How It Went]]></title><description><![CDATA[The Prep Phase
I hadn’t touched any serious LeetCode-style prep until a recruiter reached out about 3 weeks ago with the Amazon OA. The last time I studied Data Structures and Algorithms seriously was back in 2016, during my CS undergrad — second yea...]]></description><link>https://blog.binayachaudari.com.np/i-took-amazons-sde-ii-oa-after-2-weeks-of-prep-heres-how-it-went</link><guid isPermaLink="true">https://blog.binayachaudari.com.np/i-took-amazons-sde-ii-oa-after-2-weeks-of-prep-heres-how-it-went</guid><category><![CDATA[amazon Interview]]></category><category><![CDATA[interview questions]]></category><category><![CDATA[Amazon Web Services]]></category><category><![CDATA[leetcode]]></category><dc:creator><![CDATA[Binaya]]></dc:creator><pubDate>Thu, 29 May 2025 22:49:48 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1748559451785/c6e826e1-554f-4b57-b0a7-855893c98907.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="heading-the-prep-phase"><strong>The Prep Phase</strong></h1>
<p>I hadn’t touched any serious LeetCode-style prep until <strong>a recruiter reached out about 3 weeks ago</strong> with the Amazon OA. The last time I studied Data Structures and Algorithms seriously was back in <strong>2016</strong>, during my CS undergrad — second year, some foggy lectures, and probably a lot of “this’ll never be useful in real life” vibes. Fast-forward to 2025, and boom — time to rekindle that long-lost romance with Recursion, DFS, and their chaotic friends.</p>
<p>Once I got the OA invite, I did what any rational human would do:<br /><strong>Panic slightly. Then full send into LeetCode.</strong></p>
<p>For two straight weeks, I went full try-hard mode. Woke up early, brewed an aggressively large coffee, and started knocking out the Blind-75 list. Covered all the hot topics: Priority Queues, BFS/DFS, Trees, Graphs, Greedy, HashMaps, DP, Sliding Window. It was like boot camp, but for brain cells.</p>
<p>I even started seeing LeetCode problems in real life.<br />“Find the optimal seat in this bus” — classic greedy problem.<br />“Why is this checkout line moving faster?” — sliding window optimization.<br />“Why is my brain melting?” — probably recursion with no base case.</p>
<p>I felt… <em>prepared-ish</em>.<br />But deep down, I knew — <strong>this is Amazon. This isn’t a chill walk through a tree traversal. This is LeetCode Extreme Edition</strong></p>
<h1 id="heading-the-online-assessment"><strong>The Online Assessment</strong></h1>
<p>**Q1. Search-style Optimization Problem<br />**It looked familiar — classic Min-Max search range thing, just like <a target="_blank" href="https://leetcode.com/problems/koko-eating-bananas/">Koko Eating Bananas</a>… Except this Koko was armed and hostile.</p>
<p>**Q2. Binary Search + Sliding Window<br />**You know the kind of problem that <strong>looks medium</strong>, maybe even friendly at first… Then turns around and **roundhouse kicks you in the face?<br />**It turned out to be a <strong>hard-level</strong> combo of <strong>Binary Search + Sliding Window</strong> — the kind of tag team you’d usually expect to see deep in a LeetCode Hard dungeon, not casually tossed into an OA.</p>
<p>**System Design, Working Style Survey &amp; LPs Section<br />**A much-needed breather. No code, just multiple-choice questions about system design, collaboration, ownership, and leadership.<br />Honestly? Felt like I crushed this part. I mean, I do work well with others… especially if they bring snacks.</p>
<h1 id="heading-the-aftermath"><strong>The Aftermath</strong></h1>
<p>The assessment didn’t go well.<br />Was it humbling? Yep.<br />Was it also super educational? <strong>Absolutely.</strong><br />Amazon’s OA isn’t just about solving problems — it’s about solving them fast, accurately, and without any fluff. No IDE-level debugging, no mercy; just you, a blinking cursor, and a clock ticking down.</p>
<p><strong>Brutal</strong></p>
<p>But here’s the thing:<br />I <strong>learned a ton</strong>.<br />My <strong>DSA instincts have improved dramatically</strong>.<br />Time pressure turns even simple problems into psychological warfare.<br />The OA isn’t the goal. It’s just a checkpoint in a longer journey.<br />And surprisingly, I’ve started to <strong>genuinely enjoy the process</strong>.</p>
<p>This wasn’t a loss — it was a <strong>training arc</strong>.<br />(Okay, maybe a loss, but one with XP gain.)</p>
<p>This isn’t a failure story. It’s just a <strong>progress checkpoint</strong>.<br />We move.</p>
<p>Amazon, let’s reconnect after 6 months.</p>
]]></content:encoded></item><item><title><![CDATA[Fixing React-Native android release build]]></title><description><![CDATA[After devoting several months to meticulous research and development, your app is finally ready for release. Filled with boundless excitement and a sense of achievement, you look forward to introducing your million-dollar app to the world. You then f...]]></description><link>https://blog.binayachaudari.com.np/fixing-react-native-android-release-build</link><guid isPermaLink="true">https://blog.binayachaudari.com.np/fixing-react-native-android-release-build</guid><category><![CDATA[React Native]]></category><category><![CDATA[production]]></category><category><![CDATA[react native app development]]></category><category><![CDATA[Android]]></category><category><![CDATA[build]]></category><dc:creator><![CDATA[Binaya]]></dc:creator><pubDate>Fri, 01 Jul 2022 03:27:08 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1669486620163/SB0_HV3zG.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>After devoting several months to meticulous research and development, your app is finally ready for release. Filled with boundless excitement and a sense of achievement, you look forward to introducing your million-dollar app to the world. You then follow every step mentioned in <a target="_blank" href="https://reactnative.dev/docs/signed-apk-android">React-Native’s official guide</a> to generate a production-ready <code>.apk</code> file for testing your app before publishing it to the Google Play Store.</p>
<p>Subsequently, you execute the following command in a terminal to compile and generate a production build <code>.apk</code> file; the generated file will be located under <code>android/app/build/outputs/apk/release/app-release.apk</code>.</p>
<pre><code class="lang-bash"><span class="hljs-built_in">cd</span> android
./gradlew assembleRelease
</code></pre>
<p>After generating the <code>.apk</code> file, you install it on your Android device, and as soon as you open the app, it crashes.</p>
<p>You don’t know what went wrong; you start rechecking to see if you missed any steps mentioned in the React-Native documentation; you start searching for solutions on StackOverflow and Github and try out all the random solutions you discovered. You feel frustrated, stressed out, and filled with self-doubt. Imposter syndrome kicks in, and you regret choosing React-Native over other mobile development frameworks.</p>
<hr />
<p><strong>TL;DR:</strong> I had a similar feeling after going through a lot of answers and comments on StackOverflow and GitHub issues. Here are the steps I followed to find and fix the issues with the release build.</p>
<h1 id="heading-using-logcat-cli-to-determine-the-issue"><strong>Using Logcat CLI to determine the issue</strong></h1>
<p>Connect your device to your machine (ensure USB debugging is <strong>ON</strong>) and run the following command on your terminal.</p>
<pre><code class="lang-bash">adb logcat <span class="hljs-string">'*:E'</span>
</code></pre>
<p>Find out more about <strong>Logcat CLI syntax</strong> <a target="_blank" href="https://developer.android.com/studio/command-line/logcat">here</a>.</p>
<p>After running the logcat tool to log system logs, I had two issues that were causing the application to crash.</p>
<h3 id="heading-1-couldnt-find-dso-to-load-libjsexecutorsohttplibjsexecutorso"><strong>1. couldn’t find DSO to load:</strong> <a target="_blank" href="http://libjsexecutor.so"><strong>libjsexecutor.so</strong></a></h3>
<p><img src="https://miro.medium.com/max/1400/1*kWZI7ICdeeuONY0AaZd-8A.png" alt="java.lang.UnsatisfiedLinkError: couldn’t find DSO to load: libjsexecutor.so" class="image--center mx-auto" /></p>
<p>I solved <a target="_blank" href="http://libjsexecutor.so">libjsexecutor.so</a> error by adding <code>enableVmCleanup: false</code> in <code>build.gradle</code> file inside <code>project.ext.react</code> array as mentioned in the GitHub comment <a target="_blank" href="https://github.com/facebook/react-native/issues/25537#issuecomment-1104619909">here</a>.</p>
<pre><code class="lang-java">project.ext.react = [
    enableHermes: <span class="hljs-keyword">true</span>,     <span class="hljs-comment">// clean and rebuild if changing</span>
    enableVmCleanup: <span class="hljs-keyword">false</span>, <span class="hljs-comment">//this</span>
]
</code></pre>
<h3 id="heading-2-javalangruntimeexception-unable-to-load-script">2. <strong>java.lang.RuntimeException: Unable to load script.</strong></h3>
<p><img src="https://miro.medium.com/max/1400/1*ACDTvBaEPpki9A8-3zUuyw.png" alt="java.lang.RuntimeException: Unable to load script. Make sure you’re either running Metro (run ‘npx react-native start’) or that your bundle ‘index.android.bundle’ is packaged correctly for release." /></p>
<p>To solve this issue follow the steps below</p>
<ul>
<li>Remove <a target="_blank" href="http://index.android"><code>index.android</code></a><code>.bundle</code> from <code>android/app/src/main/assets</code> if the file already exists or just run the following command (ensure you’re on your project’s root directory).</li>
</ul>
<pre><code class="lang-bash">rm android/app/src/main/assets/index.android.bundle
</code></pre>
<ul>
<li>For generating your android bundle run the command given below, this will generate <a target="_blank" href="http://index.android"><code>index.android</code></a><code>.bundle</code> file inside <code>android/app/src/main/assets</code></li>
</ul>
<pre><code class="lang-bash">npx react-native bundle \
--platform android \
--dev <span class="hljs-literal">false</span> \
--entry-file index.js \
--bundle-output android/app/src/main/assets/index.android.bundle
</code></pre>
<ul>
<li>Now run the following command to generate a release build</li>
</ul>
<pre><code class="lang-bash"><span class="hljs-built_in">cd</span> android
./gradlew clean
./gradlew assembleRelease
</code></pre>
<p>Hopefully, this will fix your app's crashing problem, and your app should be ready for deployment.</p>
<p><em>Feel free to provide any feedback and improvements, happy coding…</em></p>
]]></content:encoded></item></channel></rss>