utkarsh_108's blog

By utkarsh_108, history, 5 hours ago, In English

In this blog, I will explain how to ace the Google interview for a Software Engineering (SWE) intern position, including how to prepare and approach problem-solving effectively

I am an upcoming SWE intern in Google so I am credible enough to answer this question based on my experience and understanding of the interview process.

Interview Tips

  • Make it a habit to write your code on Notepad or Google Docs, This is important because the autocomplete features and other helpful coding tools that you may rely on during your regular coding sessions will not be available in the interview setting
  • Ensure your variable names are as descriptive and meaningful as possible to improve code readability and help the interviewer follow your logic.
    Don't use 
    int n=arr.size() use instead int arraySize=arr.size();
    for(int i=0;i<n;i++) use instead for(arrayIndex=0;arrayIndex<arraySize;arrayIndex++)
  • Speak about what you are doing while writing code, so that the interviewer does not lose interest and does not feel bored. Also, do not hesitate to take hints if you are stuck somewhere.
  • Make sure to carefully read the problem statement to avoid wasting time-solving the wrong question or misunderstanding key requirements.
  • If you don't understand any part of the problem statement, ask the interviewer for clarification. This won't leave a negative impression
  • Declare functions that perform specific tasks, increasing code readability and making your solution easier to follow and maintain and make the function name which is related to what it does.
    Don't use 
    int f(int a,int b) use instead int sumOfNumber(int number1,int number2)
  • Make sure you have a better understanding of the time complexity of each data structure, such as map, unordered map, set, unordered set, and disjoint set union, etc as this will help you analyze their time complexities effectively.
  • practice important topics related to graphs, as they are highly valued in interviews. Google particularly favors graph-related problems, so it is essential to prepare these topics thoroughly to ensure a strong understanding and proficiency.
    topics:
    depth-first search,breadth-first search, shortest path algorithm, toposort, disjoint-set-union etc.

I have documented the strategy I used during my Google interview, highlighting the key approaches and techniques that helped me succeed.

If you have any questions regarding the strategies I've shared, I warmly welcome you to ask them in the comments or in instagram. I'm here to help and provide any clarification you may need! instagram

I truly hope you find this information enjoyable and helpful in your preparation journey.

Full text and comments »

  • Vote: I like it
  • -21
  • Vote: I do not like it

By utkarsh_108, history, 6 months ago, In English

The below article is an attempt to create a good starting point for people who practice some good DSU problems

you read the Nice blog by kartik8800 DSU Blog here you tell basics to advanced about DSU

below code is written by striver you can take reference from his YT channel TAKE U FORWARD

striver_79

standard DSU


#### PROBLEM 1

1 -> This Problem Based how we can use DSU beautifully by sorting the edges of the graph

1213G - Path Queries

Hint 1
Hint 2
DSU code

Check my submission


#### PROBLEM 2

2 -> This Problem is easy side of DSU to make the network connected

25D - Roads not only in Berland

Hint 1
DSU code

Check my submission


#### PROBLEM 3

3 -> you have to make forest by adding edges by making two DSU

1559D1 - Mocha and Diana (Easy Version)

Hint 1
DSU code

Check my submission


#### PROBLEM 4

4 -> This Problem Based how we can minimise the or of the no by making highest bit to Zero

1624G - MinOr Tree

Hint 1
DSU code

Check my submission


#### PROBLEM 5

5 -> This Problem Based how we can use DSU to connect the edges from edge weight form low to high

1468J - Road Reform

Hint 1
DSU code

Check my submission

this is good level 5 problem enough to Grasp the concepts if you want to try more prblem try this Codeforces DSU Problems

ALL THE BEST FOR YOUR CODING JOURNEY :)

Full text and comments »

  • Vote: I like it
  • +2
  • Vote: I do not like it