<?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>Forem: D\sTro</title>
    <description>The latest articles on Forem by D\sTro (@slimdestro).</description>
    <link>https://forem.com/slimdestro</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%2F489004%2Fae9b51e0-9e51-4a25-a32b-3aa130798d69.jpg</url>
      <title>Forem: D\sTro</title>
      <link>https://forem.com/slimdestro</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/slimdestro"/>
    <language>en</language>
    <item>
      <title>MLOPs Lifecycles</title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Sat, 10 Apr 2021 17:52:34 +0000</pubDate>
      <link>https://forem.com/slimdestro/mlops-lifecycles-441h</link>
      <guid>https://forem.com/slimdestro/mlops-lifecycles-441h</guid>
      <description>&lt;p&gt;MLOPs life cycle 🔃 ⤵&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Define business need &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Getting datasets ready. This phase includes data cleaning, labelling, pixel optimisation, open source datasets and enterprise data-lakes&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Model development (code part) &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Training and optimisations of model &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Deployment(uat/prod) &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;User interface and API development to let user interact with the model &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Monitoring both model and system resources&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Insights and analytics&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Continuous model training: deployed one time model can work for few time-frames and hence it needs retraining on new data &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;world has changed. We use CI/CD tools like Jenkins and Docker/cubectl for code automation &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Security and protection of ML model against known vulnerability. This is the point most people ignore&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;-Thanks&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>devops</category>
      <category>datascience</category>
      <category>deeplearning</category>
    </item>
    <item>
      <title>Branding Yourself is Easy</title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Thu, 08 Apr 2021 21:22:39 +0000</pubDate>
      <link>https://forem.com/slimdestro/branding-yourself-is-easy-4c59</link>
      <guid>https://forem.com/slimdestro/branding-yourself-is-easy-4c59</guid>
      <description>&lt;p&gt;Branding yourself is important if you have to survive in the industry for long. Good news is, it's easy for people like us whose professional playground is the internet👌&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A &lt;strong&gt;Github account&lt;/strong&gt; with little or more nerdy user name with few repos. Don't get demotivated by looking at others repo. If others have lots of repo or unique research that means they've been doing this constantly for long&lt;/p&gt;

&lt;p&gt;Join &lt;strong&gt;Communities&lt;/strong&gt; like Dev, hashnode, medium, fcc, Twitter or just gBlog and keep posting your (*research) and interesting findings &lt;/p&gt;

&lt;p&gt;Plain &lt;strong&gt;Profile picture&lt;/strong&gt; suits social media but for tech forums, it should reflect who you are&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open source Contribution&lt;/strong&gt; is great but ignore it if you are offered code comments kind if task only &lt;/p&gt;

&lt;p&gt;There are &lt;strong&gt;"coding models"&lt;/strong&gt; on Instagram and most of them are either coding amateur or just got stated but their contents creation style motivates other developers. You should try this too&lt;/p&gt;

&lt;p&gt;You don't need to own a domain with your full name for &lt;strong&gt;Portfolio&lt;/strong&gt;. You can use heroku or any other forum which serves subdomain based blog. Great one is "github pages" Which will force you to learn how to push code successfully&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pitch yourself&lt;/strong&gt;. This skill requires both connections as well as courage. There's a saying "if product you built is not great then make sure the marketing is great". This skill is the backbone of this saying &lt;/p&gt;

&lt;p&gt;You won't survive on &lt;strong&gt;Stack overflow&lt;/strong&gt; so better use this platform for learning until you are confident&lt;/p&gt;

&lt;p&gt;Having &lt;strong&gt;SEO&lt;/strong&gt; skill is nice but not important people talk about you and your work &lt;/p&gt;

&lt;p&gt;Follow &lt;strong&gt;Technical blogs&lt;/strong&gt;. for example mit, deepai, FbAi, google etc. This will keep your knowledge of the domain on track&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Follow my &lt;a href="https://twitter.com/slimDestro/status/1380237743721082881"&gt;Twitter&lt;/a&gt; account for regular updates&lt;/p&gt;

&lt;p&gt;-Thanks&lt;/p&gt;

</description>
      <category>career</category>
      <category>codenewbie</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Interesting ML Paper</title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Tue, 23 Mar 2021 07:27:39 +0000</pubDate>
      <link>https://forem.com/slimdestro/interesting-ml-paper-3m31</link>
      <guid>https://forem.com/slimdestro/interesting-ml-paper-3m31</guid>
      <description>&lt;p&gt;Algorithm to predict when AI models for medical image diagnosis will make incorrect predictions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://arxiv.org/abs/2103.09957"&gt;https://arxiv.org/abs/2103.09957&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Join &lt;a href="https://www.facebook.com/groups/65666"&gt;Neural Network&lt;/a&gt; group on facebook&lt;/p&gt;

&lt;p&gt;-Thanks&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>machinelearning</category>
      <category>python</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>Build Algorithm</title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Tue, 23 Mar 2021 07:22:55 +0000</pubDate>
      <link>https://forem.com/slimdestro/build-algorithm-m3n</link>
      <guid>https://forem.com/slimdestro/build-algorithm-m3n</guid>
      <description>&lt;p&gt;Interesting Repo for learning algorithms, important methods and essentials to clear almost 2-3 rounds of your technical interviews. &lt;/p&gt;

&lt;p&gt;This Repo has several common/advanced algorithm implementations in above listed programming languages.&lt;/p&gt;

&lt;p&gt;-Python &lt;br&gt;
-Java&lt;br&gt;
-C/CPP&lt;br&gt;
-Go(GoLang): &lt;br&gt;
-Javascript(codes mostly in ES6)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/thealgorithms"&gt;Repo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GoLang Fact: 40 times faster the Python. Kubernetes, Docker is completely written in Golang. prime stack for Google Products. it has inbuilt concurrency model. NodeJS is all about libuv(cpp build) which makes NodeJS async and GoLang has this feature inbuilt.&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>codenewbie</category>
      <category>webdev</category>
    </item>
    <item>
      <title>YoDa Expression! </title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Thu, 10 Dec 2020 09:44:00 +0000</pubDate>
      <link>https://forem.com/slimdestro/yoda-expression-4e3l</link>
      <guid>https://forem.com/slimdestro/yoda-expression-4e3l</guid>
      <description>&lt;p&gt;Does anyone have one liner explanation about&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;(10 == varX)&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
 &lt;strong&gt;VS&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;(varX == 10)&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>react</category>
      <category>programming</category>
    </item>
    <item>
      <title>Tips for Developers</title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Sun, 29 Nov 2020 13:59:40 +0000</pubDate>
      <link>https://forem.com/slimdestro/tips-for-developers-173o</link>
      <guid>https://forem.com/slimdestro/tips-for-developers-173o</guid>
      <description>&lt;p&gt;I wont talk about code, devOps or linting in this article. this post will list down some useful tips you can put in practice and i am sure it will help you in future.&lt;/p&gt;

&lt;p&gt;1.) &lt;em&gt;Create a doc immediately and write down solution you just approached for solving some bug. why ?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; you dont do this because you are smart and lazy. this has happened many times in my life. i was struggling to fix some bug for days and once i resolved this, i just moved on and the next project i was assigned has exactly same bug and i wasted few days again.&lt;/p&gt;

&lt;p&gt;2.) &lt;em&gt;Create an Excel file and mention your daily work with Date and Time. why ?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; incase attendance system crashes this will help if your company dont consider your attendance because of system failure. most company hire you for some other client and those client pay the company on hours of job you do. at the end of month, your company share your attendance to the client and client pays. what happens when company you are working with forgot record of your work OR client does the same ?&lt;/p&gt;

&lt;p&gt;3.) &lt;em&gt;if you are&lt;/em&gt; &lt;strong&gt;Introvert&lt;/strong&gt; &lt;em&gt;, your life wont be smooth. why ?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; Introverts can only survive in corporate if they are excellent at their work. its also a truth, 90% introverts are more productive. Introverts dont like to bother orhers however they do like if someone comes to them and talk. problem is, your seniors would expect you to keep talking to them(boss-&lt;em&gt;itch) stuff and i dont think you are there to entertain others. i have one liner solution: *use headphones and focus on your work(Best method) OR learn some butterForkMechanism&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;4.) &lt;em&gt;your Communication matters. why ?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; you are good team member but company will only consider you for lead position if you are good at communication skills. i have seen many developers who have been working as software engineer for 7-8 years and some developer who's leading a team even they have overall 4 years of experience. when company creates list of employee they are going to fire, this perimeter is a vital one because they increase your pay every year but they cant put you on lead position. &lt;/p&gt;

&lt;p&gt;5.) &lt;em&gt;Dev Etiquette Important. why ?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; there are some workplace etiquette you should follow. company monitors your behaviour with team and this adds point when your appraisal comes. they also take feedback from each member of the team. keep your workstation neat and clean. if you have big ego/attitude problem, make sure &lt;strong&gt;you are best member of the team(Skills)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;this is what i have experienced. i fixed them slowly. dont take stress. remember, you succeed when you start making every situation interesting.&lt;/p&gt;

&lt;p&gt;thanks.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>devops</category>
      <category>career</category>
    </item>
    <item>
      <title>Can AI/ML solve this Puzzle ?</title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Sun, 29 Nov 2020 13:05:27 +0000</pubDate>
      <link>https://forem.com/slimdestro/can-ai-ml-solve-this-puzzle-3829</link>
      <guid>https://forem.com/slimdestro/can-ai-ml-solve-this-puzzle-3829</guid>
      <description>&lt;p&gt;Okay, first of all, i assume you dont think the earth is &lt;strong&gt;flat&lt;/strong&gt; (just kidding)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffq9d8lcnf5jay1yysg82.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffq9d8lcnf5jay1yysg82.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(source: &lt;a href="https://www.instagram.com/p/CFcqJW_jUhk/" rel="noopener noreferrer"&gt;Insta/My Profile&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;🎭 //Personal Opinion// 🎭&lt;/p&gt;

&lt;p&gt;this will sound Z[f(z) = f(y)] perhaps but how machine learning gonna reveal the reality of multiverse or time reversal ?&lt;/p&gt;

&lt;p&gt;people say, we have parallel universe which is just a replica that means, time is reversible. I mean spacetime is like a log file ? e=mc² says energy, mass are only transformed but never destroyed.&lt;/p&gt;

&lt;p&gt;If we take this perception further, literally time is never destroyed because it's fourth dimension of universe and hence it gets transformed as a log format you can say(backup files)&lt;/p&gt;

&lt;p&gt;Quantum computing has different thought they say nothing gets destroyed in an isolated system(universe) that means if Einstein was alive yet, we perhaps had solution for time reversal&lt;/p&gt;

&lt;p&gt;Quantum computing has big trouble with Schrodinger's cat theory which says find my cat dead "and" alive which makes everything a puzzle&lt;/p&gt;

&lt;p&gt;Now we say, artificial Intelligence can solve all this puzzle. I dont understand how. how can all this be modelled. Big bang, blackhole, speed of light, superposition bit-flips(0 becomes 1 automatically) and all.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs0ub8tnhych2fzmfayi2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs0ub8tnhych2fzmfayi2.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Dont say we can start collecting data since big-bang was happend(srsly no 👏) But this is total amazing and dangerous if somehow this puzzle gets solved.&lt;/p&gt;

&lt;p&gt;Note: i copied this post from my &lt;a href="https://www.facebook.com/itsmukulmishra/posts/1450538221804485" rel="noopener noreferrer"&gt;facebook page&lt;/a&gt;. its an old post but i thought i should share this with you guys too.&lt;/p&gt;

&lt;p&gt;thanks for reading &lt;/p&gt;

</description>
      <category>computerscience</category>
      <category>devops</category>
      <category>devjournal</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>What Softwares you use? </title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Sat, 28 Nov 2020 06:16:08 +0000</pubDate>
      <link>https://forem.com/slimdestro/what-softwares-you-use-4m44</link>
      <guid>https://forem.com/slimdestro/what-softwares-you-use-4m44</guid>
      <description>&lt;p&gt;Better productivity comes from a better communication and awesome project management strategy.&lt;/p&gt;

&lt;p&gt;Let's share what set of software we use as a sole contributor, team leader and project manager &lt;/p&gt;

&lt;p&gt;Thanks &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>codenewbie</category>
      <category>devjournal</category>
    </item>
    <item>
      <title>Truth OR Dare | Let's FUN</title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Fri, 27 Nov 2020 16:15:50 +0000</pubDate>
      <link>https://forem.com/slimdestro/truth-or-dare-let-s-fun-58gi</link>
      <guid>https://forem.com/slimdestro/truth-or-dare-let-s-fun-58gi</guid>
      <description>&lt;p&gt;Let's Play a Truth or Dare game this weekend. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;you comment your favourite Topic of Computer Science(Any Level) and either me or anyone shoots a Question related to that. you answer it without a bit of googling(Honestly).&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;*&lt;em&gt;Topic Includes: *&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;All Programming Languages&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Basic of Computer Architecture&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data Structure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Quantum Computing&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Block chain&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Artificial Intelligence&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Web Development&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;So, are you ready ?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>algorithms</category>
      <category>devops</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Industry 4.0+ | IOT, ML &amp; BLOCKCHAIN </title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Tue, 24 Nov 2020 09:35:15 +0000</pubDate>
      <link>https://forem.com/slimdestro/industry-4-0-iot-ml-blockchain-379b</link>
      <guid>https://forem.com/slimdestro/industry-4-0-iot-ml-blockchain-379b</guid>
      <description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;Industry 4.0 utilizes best of resources but what if it becomes secure using blockchain? &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kIu0izS9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/f7b7uniu0otlo363o46u.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kIu0izS9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/f7b7uniu0otlo363o46u.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is just an architecture I thought about but I'm looking for your feedback on this so that I can move it forward for some concrete structure &lt;/p&gt;

&lt;p&gt;Thanks! &lt;/p&gt;

</description>
      <category>go</category>
      <category>discuss</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Javascript Splice Vs Slice </title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Mon, 23 Nov 2020 08:11:23 +0000</pubDate>
      <link>https://forem.com/slimdestro/javascript-splice-vs-slice-29i7</link>
      <guid>https://forem.com/slimdestro/javascript-splice-vs-slice-29i7</guid>
      <description>&lt;p&gt;Splice vs Slice!  &lt;/p&gt;

&lt;p&gt;the most confusing method of javascript which can be understood easily. Hope this helps ⤵️  &lt;/p&gt;

&lt;p&gt;slice:  copies array then operates&lt;br&gt;
splice: doesnt copy array  &lt;/p&gt;

&lt;p&gt;slice is like you're creating multiple slices of  1 apple and splice I like you are making slices of apples itself&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Let xArray = [1,9,9,2]  
Let yFuntion = (array) =&amp;gt;{  
    //slice the array  
}  
yFuntion(xArray)
Console.dir(xArray) : no effect

//=========  

Let zFuntion = (array) =&amp;gt;{
    //"splice" the array  
} 
zFuntion(xArray)
Console.dir(xArray) : affected

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any other shortcut stuff you use for remembering these kind of method, share with us 🤝👌&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>discuss</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Javascript array sort with Reducer</title>
      <dc:creator>D\sTro</dc:creator>
      <pubDate>Fri, 20 Nov 2020 08:17:18 +0000</pubDate>
      <link>https://forem.com/slimdestro/javascript-array-sort-with-reducer-34l8</link>
      <guid>https://forem.com/slimdestro/javascript-array-sort-with-reducer-34l8</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aQ45tBp0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5c4lpp9kqr0xnzcnp6y9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aQ45tBp0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5c4lpp9kqr0xnzcnp6y9.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This has been the most tricky/confusing javascript interview question for starters specially 😀&lt;/p&gt;

&lt;p&gt;And this was my answer once which made interviewer shy: how the hell candidate will know if interviewer has speech recognition issue..&lt;/p&gt;

&lt;p&gt;Btw, instead forloop, you can use "reducer" like this ⤵️&lt;/p&gt;

&lt;p&gt;//&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
let reducer = (acm, value) =&amp;gt; {
  const nextIndex = acm.findIndex(i =&amp;gt; value &amp;lt; i );
  const index = nextIndex &amp;gt; -1 ? nextIndex : acm.length;
  acm.splice(index, 0, value);
  return acm;
}
// execution
Ley arr = [
arr.reduce(reducer, []) will produce [1,2,3,4]

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let me know how you answered this kind of interviews &lt;/p&gt;

&lt;p&gt;Thanks! &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
