<?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: Gilfoyle</title>
    <description>The latest articles on DEV Community by Gilfoyle (@gilfoyle).</description>
    <link>https://dev.to/gilfoyle</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%2F904904%2F81d4b667-7701-4f74-9fd5-df421850b173.png</url>
      <title>DEV Community: Gilfoyle</title>
      <link>https://dev.to/gilfoyle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gilfoyle"/>
    <language>en</language>
    <item>
      <title>Best Free Resources to Practice Leetcode Effectively!</title>
      <dc:creator>Gilfoyle</dc:creator>
      <pubDate>Tue, 13 Sep 2022 08:21:46 +0000</pubDate>
      <link>https://dev.to/gilfoyle/best-free-resources-to-practice-leetcode-effectively-l22</link>
      <guid>https://dev.to/gilfoyle/best-free-resources-to-practice-leetcode-effectively-l22</guid>
      <description>&lt;p&gt;If you have been in the market and looking for a job, I am pretty sure you have heard of &lt;a href="//leetcode.com"&gt;Leetcode&lt;/a&gt;,it's a website to practice data structures and algorithms. In this post I am going to share with you the best resources to practice Leetcode effectively.&lt;/p&gt;

&lt;h2&gt;
  
  
  List of Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="//neetcode.com"&gt;Neetcode&lt;/a&gt;&lt;br&gt;
This website has a free list of practice questions, it also has paid courses for people who are interested.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://seanprashad.com/leetcode-patterns/"&gt; Sean Prashad Leetcode Patterns List&lt;/a&gt;&lt;br&gt;
This website has a list of practice questions with the the most common patterns on Leetcode (I highly recommend learning the most common patterns on Leetcode).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.teamblind.com/post/New-Year-Gift---Curated-List-of-Top-100-LeetCode-Questions-to-Save-Your-Time-OaM1orEU"&gt;Blind 75&lt;br&gt;
&lt;/a&gt;This is a list of questions that teaches you core concepts and techniques for each category/type of problems. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here you have the best free three resources to practice Leetcode effectively. If you want more content like that please consider following me on &lt;a href="https://twitter.com/Gilfoyleoffical"&gt;Twitter&lt;/a&gt;. Thanks for reading. &lt;/p&gt;

</description>
      <category>leetcode</category>
      <category>algorithms</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to Find The Frequency of Characters in a String or Array</title>
      <dc:creator>Gilfoyle</dc:creator>
      <pubDate>Mon, 12 Sep 2022 05:46:58 +0000</pubDate>
      <link>https://dev.to/gilfoyle/how-to-find-the-frequency-of-characters-in-a-string-or-array-3271</link>
      <guid>https://dev.to/gilfoyle/how-to-find-the-frequency-of-characters-in-a-string-or-array-3271</guid>
      <description>&lt;p&gt;In this post I am going to tech you how to find the frequency of characters in a string or array. This is a common question in interviews. I will be explaining the code in &lt;strong&gt;Java&lt;/strong&gt; and &lt;strong&gt;JavaScript&lt;/strong&gt;. &lt;/p&gt;

&lt;h2&gt;
  
  
  Question prompt
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Write a function, charFrequency, that takes in a string/array as an argument. The function should return the the frequency of each character in the string/array then return the answer as map or dictionary.&lt;br&gt;&lt;br&gt;
You can assume that the input string is non-empty.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;example_00&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mostFrequentChar('david'); -&amp;gt; Map={ 'd' =&amp;gt; 2, 'a' =&amp;gt; 1, 'v' =&amp;gt; 1, 'i' =&amp;gt; 1 } 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;example_01:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mostFrequentChar('bookeeper'); // -&amp;gt; Map= { 'b' =&amp;gt; 1, 'o' =&amp;gt; 2, 'k' =&amp;gt; 1, 'e' =&amp;gt; 3, 'p' =&amp;gt; 1, 'r' =&amp;gt; 1 } 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  JavaScript Solution
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const charFrequency = (str) =&amp;gt; {

  //create a map to save the characters and save the frequency of each character
  const frequencyMap = new Map();
  //go through each character in the string 'str' 
  for(let char of str)
    {
      //check if our map doesn't contain the current character we are going through
      if(!frequencyMap.has(char))
        {
          //if our map doesn't contain the character we add it and assign the frequency to 1      
          frequencyMap.set(char,1);
        }
      //check if our map does contain the current character 
      else
        {
          // if our map contains the current character we are going to add 1 to the character frequency value
          //example, if we had 'd' =&amp;gt; 1, we are going to get the value of 'd' and add 1 to it
          // so 'd' frequency value beacomes 2 
          frequencyMap.set(char,frequencyMap.get(char)+1);
        }
    }

  //return the frequencyMap we created 
  return frequencyMap;
}

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Java Solution
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public String frequencySort(String str) {
  //create a map to save the characters and save the frequency of each character
  HashMap&amp;lt;Character,Integer&amp;gt; frequencyMap = new HashMap();
  //go through the string 'str' 
  for(char ch : str.toCharArray())
    {
      //check if our map contains the current character we are going through
      if(!frequencyMap.containsKey(ch))
        {
          //if our map doesn't contain the character we add it and assign the frequency to 1      
          frequencyMap.put(ch,1);
        }
      //check if our map does contain the current character 
      else
        {
          // if our map contains the current character we are going to add 1 to the character frequency value
          //example, if we had 'd' =&amp;gt; 1, we are going to get the value of 'd' and add 1 to it
          // so 'd' frequency value beacomes 2 
          frequencyMap.put(ch,frequencyMap.get(ch)+1);
        }
    }

  //return the frequencyMap we created 
  return frequencyMap;
}

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

&lt;/div&gt;



&lt;p&gt;This is how we get the frequency of characters in a string or array. If you have any questions, please let me know in the comments section. Also consider following me on &lt;a href="https://twitter.com/Gilfoyleoffical"&gt;Twitter&lt;/a&gt; if you want more content like this.  &lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>programming</category>
      <category>javascript</category>
      <category>java</category>
    </item>
    <item>
      <title>How I was able to make $150,000 fresh out of college</title>
      <dc:creator>Gilfoyle</dc:creator>
      <pubDate>Sun, 11 Sep 2022 21:33:29 +0000</pubDate>
      <link>https://dev.to/gilfoyle/how-i-was-able-to-make-150000-fresh-out-of-college-2h66</link>
      <guid>https://dev.to/gilfoyle/how-i-was-able-to-make-150000-fresh-out-of-college-2h66</guid>
      <description>&lt;p&gt;In this post I am going to be talking about how I was able to make fix figures fresh out of college as a Software Engineer. Before getting into that though, I want to give you a quick background about my eduction. &lt;/p&gt;

&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;I went to a state university in The San Francisco Bay Area  for a degree in Computer Science. I wasn't an A student at all, I was barely making it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Path to $150,000
&lt;/h2&gt;

&lt;p&gt;During my 3rd year in college I started practicing for interviews to get an internship (it's important to get an internship during college.) After interviewing for 3 months, I was able to land an internship at a &lt;em&gt;non-tech&lt;/em&gt; company. The pay wasn't that great ($20/hr), but I wanted something to add on my resume to be able to get another internship or a full-time job. The internship lasted 3 months. After that I continued interviewing for other internships and I was able to get another internship at a &lt;em&gt;tech startup&lt;/em&gt; this time. By the time I finished this internship I was in my last semester in college, so I started applying for full time jobs. My job hunt for a full time job lasted for the whole semester. I was able to get around 11 interviews, I failed 8 of them and got 3 offers. I picked the best one based on the salary and the company name. &lt;/p&gt;

</description>
      <category>salary</category>
      <category>webdev</category>
      <category>programming</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>The Most Important Leetcode Patterns</title>
      <dc:creator>Gilfoyle</dc:creator>
      <pubDate>Sun, 11 Sep 2022 03:39:10 +0000</pubDate>
      <link>https://dev.to/gilfoyle/the-most-important-leetcode-patterns-1f7b</link>
      <guid>https://dev.to/gilfoyle/the-most-important-leetcode-patterns-1f7b</guid>
      <description>&lt;p&gt;If you have been looking for a job in tech, I am pretty sure you have heard of &lt;a href="https://leetcode.com/"&gt;Leetcode&lt;/a&gt;, it's a website that helps you learn and practice Data Structures and Algorithms to pass the coding interview. so without farther due let's talk about the most important patterns to solve any Leetcode style questions. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sliding Window &lt;/li&gt;
&lt;li&gt;Two Pointers&lt;/li&gt;
&lt;li&gt;Fast &amp;amp; Slow pointers (LinkedList)&lt;/li&gt;
&lt;li&gt;Tree Breadth First Search aka BFS&lt;/li&gt;
&lt;li&gt;Tree Depth First Search aka DFS &lt;/li&gt;
&lt;li&gt;Hashing (using HashTable or Map) &lt;/li&gt;
&lt;li&gt;Dynamic Programming &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Please consider following me on &lt;a href="https://twitter.com/Gilfoyleoffical"&gt;Twitter&lt;/a&gt; for more content like this. &lt;/p&gt;

</description>
      <category>leetcode</category>
      <category>datastructures</category>
      <category>algorithms</category>
      <category>faang</category>
    </item>
  </channel>
</rss>
