<?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>DEV Community: amahJennifer</title>
    <description>The latest articles on DEV Community by amahJennifer (@amahjennifer).</description>
    <link>https://dev.to/amahjennifer</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%2F285128%2F8212b312-da48-4342-bbb5-47c6397960a1.png</url>
      <title>DEV Community: amahJennifer</title>
      <link>https://dev.to/amahjennifer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amahjennifer"/>
    <language>en</language>
    <item>
      <title>Nevertheless Jennifer Coded</title>
      <dc:creator>amahJennifer</dc:creator>
      <pubDate>Sun, 08 Mar 2020 18:23:17 +0000</pubDate>
      <link>https://dev.to/amahjennifer/nevertheless-jennifer-coded-26hm</link>
      <guid>https://dev.to/amahjennifer/nevertheless-jennifer-coded-26hm</guid>
      <description>&lt;p&gt;I code and I am a strong, beautiful, confident, badass woman.&lt;/p&gt;

</description>
      <category>wecoded</category>
      <category>womensday</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>THE "SOCK LAUNDRY" SOLUTION</title>
      <dc:creator>amahJennifer</dc:creator>
      <pubDate>Tue, 10 Dec 2019 18:44:12 +0000</pubDate>
      <link>https://dev.to/amahjennifer/the-sock-laundry-solution-485i</link>
      <guid>https://dev.to/amahjennifer/the-sock-laundry-solution-485i</guid>
      <description>&lt;p&gt;As simple as it may sound ,sock laundry can be a pain in the ass.&lt;br&gt;
knowing what to do first ,when to do it ,and when next to make a move.&lt;br&gt;
This laundry takes a lot of thinking or maybe not so much,take a deep breath ,relax you are about to do this .&lt;br&gt;
In this sock Laundry Solution,a function is required to take three arguments &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;An array of Cleans socks&lt;/li&gt;
&lt;li&gt;An array of Dirty socks&lt;/li&gt;
&lt;li&gt;The maximum number of washes &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Pretty clear right ?&lt;br&gt;
let's start with a case where number of washes is equal to zero ,this means that the dirty socks will not be washed.In this case we return only the possible number of pairs in the clean socks array.&lt;/p&gt;

&lt;h2&gt;
  
  
  A CASE WHERE NUMBER OF WASHES IS EQUAL TO 0
&lt;/h2&gt;

&lt;p&gt;The first step is to check for the possible number of washes &lt;br&gt;
if the number of washes is less than 1,pair the array of clean socks and return count,which is equal is number of pairs .&lt;/p&gt;

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

&lt;h2&gt;
  
  
  A CASE WHERE NUMBER OF WASHES IS GREATER THAN DIRTYSOCKS.length
&lt;/h2&gt;

&lt;p&gt;if the number of washes is greater than 0.check if the number of washes is greater than the length of the &lt;strong&gt;DIRTYSOCKS&lt;/strong&gt; array.&lt;br&gt;
In this case where number of washes is greater than the length of the dirty sock array,we pair the clean and dirty socks array and return the combined pair .&lt;/p&gt;

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

&lt;h2&gt;
  
  
  GET PAIRS FROM THE ARRAYS
&lt;/h2&gt;

&lt;p&gt;Create a function to get the number of paired and unpaired socks.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rZO0qkJj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/yt1na7y8t2a99iy51537.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rZO0qkJj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/yt1na7y8t2a99iy51537.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  CREATE FUNCTION TO WASH DIRTY SOCKS
&lt;/h2&gt;

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

&lt;h2&gt;
  
  
  CHECK FOR UMATCHED CLEAN SOCKS AGAINST THE DIRTY SOCKS
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--83h9Wqmj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/rxnakg9lwco58aehacyq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--83h9Wqmj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/rxnakg9lwco58aehacyq.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;The Sock Laundry Solution requires two functions&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;One that returns the number of pairs in a given array&lt;br&gt;
and another that takes two arrays and checks for matching pairs while it increments the number of washes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Easy right ?&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Now let's do some laundry !
&lt;/h2&gt;

</description>
      <category>javascript</category>
      <category>node</category>
    </item>
    <item>
      <title>The Brain Climax </title>
      <dc:creator>amahJennifer</dc:creator>
      <pubDate>Wed, 04 Dec 2019 05:35:59 +0000</pubDate>
      <link>https://dev.to/amahjennifer/the-brain-climax-2g1p</link>
      <guid>https://dev.to/amahjennifer/the-brain-climax-2g1p</guid>
      <description>&lt;p&gt;As a junior developer in a company with more young senior developers,there is the need to work hard and put more effort daily,you keep setting new standards for yourself, whether consciously or unconsciously these standards automatically define you and your progress at work.&lt;br&gt;
There is a common saying that "programmers have no life",although its just a saying it has taken a lot of "Programmer's lives",we look up to our mentors and want to be like them ,we want to spend over 12 hours at work,sleep less,code more,we want to fall in love with the process.Its safe to say that we are training ourselves to be like them,but then what is your BRAIN CLIMAX.&lt;br&gt;
For some the brain climax is when they get tired and cant work efficiently anymore, unlike the first 30 mins.While some never get to the climax.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
