Ask HN: What should I do next for my career?
I&#x27;ve certainly been where you are. It definitely sounds like you need a job change, but your next company should be selected with care.<p>&gt; I don&#x27;t have good grades in my undergrad<p>Don&#x27;t furnish that information. If the company asks you, bow out - it&#x27;s an absurd question when you have 5 years of experience.<p>A masters won&#x27;t help you much and I wouldn&#x27;t recommend it in your situation. It&#x27;s the kind of thing a person thinks about when they feel stuck - I&#x27;ve had the same impulse at every career junction.<p>&gt; Should I work on solving LeetCode questions, and aim to get into FAANG companies<p>I&#x27;d certainly recommend LeetCode, but not just for interviews. There are benefits to it that nobody mentions: your initial code correctness, your debugging skills, your communication skills, and your familiarity with your programming language all go up.<p>I just went through this process and the time investment has paid off quite well. I used to hate LC and thought I wasn&#x27;t capable of landing any job, let alone a top tier job.<p>FAANG is good for compensation, but not necessarily the most exciting work, so keep that in mind. There are many non-FAANG companies that are good catches.<p>teamblind.com is a great resource for interview tips, if used carefully.<p>Expect months-long practice and to do a lot of interviews. Rejection is just part of the process. Interview with companies you haven&#x27;t heard of&#x2F;don&#x27;t care much about first. Respond to random recruiters who reach out.<p>Don&#x27;t forget to study for behavioral questions (STAR method) and system design (<a href="https:&#x2F;&#x2F;github.com&#x2F;donnemartin&#x2F;system-design-primer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;donnemartin&#x2F;system-design-primer</a>).<p>For practical LeetCode tips - expect to complete a few hundred of them if you want to get into a top-tier shop. Speak out loud and explain as if you&#x27;re in an actual interview. Timegate yourself: 7.5 minutes for easy, 12.5 minutes for medium, 20 minutes for hard. These are very aggressive times. If you haven&#x27;t finished in that time, look at the solution, take notes, and understand it.<p>Here&#x27;s a Python script I wrote to help myself with this process. `pip install rich` should take care of the only external dependency. This script randomly selects LeetCode question numbers and creates a markdown file for note-taking. When I failed a question, I would stick it in `attempted` and it would come back up eventually.<p><pre><code>    #!&#x2F;usr&#x2F;bin&#x2F;env python

    import random
    import sys
    from pathlib import Path

    from rich.console import Console

    LC_COUNT = 2218
    TIME_LIMITS = {
        &quot;Hard&quot;: &quot;20:00&quot;,
        &quot;Medium&quot;: &quot;12:30&quot;,
        &quot;Easy&quot;: &quot;7:30&quot;,
    }

    crushed = {}

    mediocre = {}

    attempted = {}

    short_list = {
        # Blind 75
        76,
        102,
        105,
        124,
        128,
        143,
        152,
        153,
        198,
        207,
        208,
        211,
        212,
        213,
        230,
        238,
        252,
        269,
        271,
        295,
        300,
        322,
        323,
        371,
        417,
        422,
        424,
        435,
        449,
        1143,
    }

    all_lc = {num for num in range(1, LC_COUNT + 1)}
    untried = all_lc.difference(crushed)

    lc_options = short_list or attempted or untried or mediocre
    lc_options = lc_options.difference(crushed)

    if len(sys.argv) &gt; 1:
        num = sys.argv[1]
    else:
        num = random.choice(list(lc_options))

    console = Console()


    def user_input() -&gt; str:
        return console.input(prompt=&quot;[bold blue]&gt;&gt;&gt;[&#x2F;bold blue] &quot;)


    console.print(&quot;LC:&quot;, num)
    base_path = Path.home() &#x2F; &quot;LC&#x2F;&quot;
    for existing_path in base_path.glob(f&quot;*&#x2F;{num}-*.md&quot;):
        console.print(&quot;File already exists:&quot;, existing_path)
        exit()

    difficulty = &quot;&quot;
    while difficulty not in TIME_LIMITS:
        console.print(f&quot;Difficulty {list(TIME_LIMITS.keys())}:&quot;)
        difficulty = user_input().strip().capitalize()

    name = &quot;&quot;
    while not name:
        console.print(&quot;Name:&quot;)
        name = user_input().strip().replace(&quot;  &quot;, &quot; &quot;)

    url_name = name.lower().replace(&quot; &quot;, &quot;-&quot;)

    path = base_path &#x2F; f&quot;{difficulty}&#x2F;{num}-{url_name}.md&quot;


    template = f&quot;&quot;&quot;# Problem: {name.title()}
    https:&#x2F;&#x2F;leetcode.com&#x2F;problems&#x2F;{url_name}&#x2F;

    *Difficulty:* {difficulty}
    *Status:* Untried
    *Time:* ? left out of {TIME_LIMITS[difficulty]} minutes

    # Notes:


    # Attempts:

    ## 

    Time: O(?)

    Space: O(?)

    ```
    ```


    # Solutions:

    ## 

    Time: O(?)

    Space: O(?)


    &quot;&quot;&quot;

    if path.exists():
        console.print(&quot;File already exists:&quot;, path)
    else:
        console.print(&quot;Creating file:&quot;, path)
        with open(path, &quot;w&quot;) as outfile:
            outfile.write(template)

    console.print(&quot;Done&quot;, style=&quot;bold green&quot;)</code></pre>