interviewhelp.io

Grow into top tier organizations

Join us on Slack

Posts

Strive to be Earth’s best employer The 15th leadership principle of Amazon is “Strive to be the best employer on Earth”. 1. How does Amazon explain the principle, what it means? For Amazon, the best employer means someone who employs the best people. Amazon relates this new principle to leadership principle #6, “Hire and develop the best. But it takes the idea in #6, a few steps further. Leaders with their work every day create a safer, more productive, more diverse and fairer work environment.
Top 10 highest paying companies for TPM roles When it comes to choosing a company for your career path, one of the most important factors is money. Let’s be honest - money is a very important motivator. If you are a Technical Program Manager, and if the money is an important factor for you too, you might be curious about the highest paying companies for TPM roles. Read on to find out!
What to expect: Google, Facebook and Amazon Technical Program Manager Interview At Google you can expect three types of interviews: Program management interview Technical interview Leadership interview You can expect the following questions, according to Glassdoor: Program management interview General questions What is your current role? What methodology do you use in your projects and programs? Why do you want to work here? What makes a successful program manager?
Google Product Manager Interview Questions Google tests the PM candidates in a few areas. The questions for the Google PM interview are broken down into: Product design questions Analytical Cultural fit Technical Strategy Estimation questions Product design questions How would you design a smart thermostat for a college dorm room? How would you design a map-based product for the SF Museum of Modern Art? How could you make Google Calendar better?
Google tests the product marketing manager (PMM) candidates in four different areas: Marketing aptitude Communication skills Analytical skills Creativity Marketing aptitude (interview questions) In this area expect questions like: Tell me a terrible product that’s marketed well? Tell me an excellent product that marketed poorly? How would you position the Samsung Chromebook? If you’re PMM for Google AdWords, how do you plan to market it? Name a piece of technology you’ve read about recently.
In the corporate world, still no one can surpass the technology giants Apple, Google, Facebook, Amazon and Netflix. Getting a job at one of these companies is a dream come true for many engineers. Interesting read: FAANG Software Engineer Interview Process Becoming a FAANG Software Engineer See the major reasons FAANG company is a wonderful choice for engineers: 1. Compensation These companies pay well. A software engineer at Google, for about four years makes $280-$340k total compensation.
If you have what Amazon is looking for, the major focus when preparing for an interview should be on how to show your talent and knowledge most simply. The major focus is on removing all obstacles that may obscure your talent. Pay attention to the following things before making sure you are ready for an interview: Amazon tests you on two broad aspects: Technical Skills to Do the Job For technical skills, you need to know what the industry expects and be good at solving the most common issues.
Workplace Edition: Amazon vs Facebook - Who Wins? For many, working in one of the top FAANG companies in the world is a dream come true. However, there are several factors that differentiate these companies and what they offer their employees. Amazon and Facebook are the two leading top tier companies that are leading to take over different parts of the technology industry. Amazon is a leader in the e-commerce and cloud computing known as Amazon Web Services (AWS) whereas Facebook takes the lead in the social media realm, being a parent company of the top socials such as Instagram, WhatsApp, Facebook, and Oculus.
No one likes a missed deadline, especially not interviewers. However, trying to spin a story that shows it as a success is worse. The interviewer understands that everyone makes a mistake and what they really need to know is what you learned from that mistake. The top 3 things interviewers wish to know include: Accountability for the missed deadline and the reason why you missed it An understanding of how you handled the repercussions of the missed deadline Learnings from the incident and how you improved because of the mistake A sample answer When I was just starting my career as a programmer, I was asked to give an estimate of the amount of time that a particular module would take to be completed.

Anagram

2022-04-14
Anagram An anagram is a word formed by rearranging the letters of another word, using all the original letters exactly once. For example, the word anagram itself can be rearranged into nagaram, also the word binary into brainy and the word adobe into abode. Valid Anagram Given two strings s and t, how do we check whether they are anagrams of each other? One way is to sort both strings lexicographically and compare the sorted strings:
Swap Two Variables In Python, swapping two variables is a one-liner: a, b = b, a. In languages such as Java, swapping requires the use of a temporary variable: 1 2 3 temp = a; a = b; b = temp; If we know the two variables are integers, can we swap them without using a temporary variable? 1 2 3 4 5 6 >>> a, b = 5, 20 >>> a ^= b >>> b ^= a >>> a ^= b >>> a, b (20, 5) It’s a fun little exercise to convince yourself that the above procedure indeed works.
Common Leetcode Patterns Longest Common Subsequence link1 Sliding Window link1 link2 link3 Two Pointers link1 link2 Palindromes link1 Fibonacci link1 Bitwise XOR link1 0/1 Knapsack link1 Topological Sort link1 K-way Merge link1 Top K Numbers link1 Binary Search link1 link2 link3 link4 Backtracking link1 link2 link3 link4 Two Heaps link1 Depth First Search link1 Breadth First Search link1 Cyclic Sort link1 Merge Intervals link1 Fast & Slow Pointers link1 Monotonic Queue link1 Monotonic Stack link1 Begin Your FAANG Journey With Our Software Engineer Interview Program Enroll Now
Get all digits in a number with minimum space. Given a positive integer num, the following function iterates its digits from the most insignificant digit to the most significant one: 1 2 3 4 def get_digits_right_to_left(num: int): while num > 0: yield num % 10 num //= 10 Here’s another way to write it using Python’s divmod function: 1 2 3 4 def get_digits_right_to_left(num: int): while num > 0: num, digit = divmod(num, 10) yield digit Can we iterate the digits from the most significant digit to the most insignificant one?
Problem Write a function that takes an unsigned integer and return the number of ‘1’ bits it has. - Example 1: Input: 5 Output: 2 Explanation: Integer 2 in binary is "00000000000000000000000000000101" which has a total of two '1' bits. Example 2: Input: 8 Output: 1 Explanation: Integer 4 in binary is "00000000000000000000000000001000" which has a total of one '1' bit. Brian Kernighan’s Algorithm Notice that for any integer n, doing a bit-wise AND of n and n-1 has the effect of flipping the least-significant 1 bit in n to 0.
Number of Connected Components in an Undirected Graph Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), find the number of connected components in the undirected graph. Example 1: 0 – 1 – 2 3 – 4 Given n = 5 and edges = [[0, 1], [1, 2], [3, 4]], return 2.
Interview Stages Online coding challenge: typically done on hackerrank.com HR phone screen: why are you interested in the company, what role (front-end/ back-end/full-stack/data engineer/devops), high-level overview of your professional and academic experience, visa status etc One round of phone interview (Virtual) onsite interview comprising around five one-hour interviews Here’s an overview what FAANG engineer interview may cover … Anything on your resume (projects at previous companies, internships, etc) Coding question covering Basic data structures and algorithms - hash tables, binary search trees, sorting algorithms, heaps, etc.
Introduction In [this post](/posts/a-binary-search-template/ “A Binary Search Template”) we have learned how to use binary search to efficiently find an item in an ordered sequence. In this post we’ll explore problems where the search space is not immediately obvious. If for a condition, condition(k) is True implies condition(k+1) is True, then we can apply binary search. Find the Smallest Divisor Given a Threshold This LeetCode problem asks us to find the smallest positive integer k such that the sum achieved by dividing every number in nums by k is less than or equal to a given threshold.
Introduction Binary search is often used to efficiently locate an item in a sorted sequence of items. Compared to linear search which requires O(n) running time, binary search only takes O(log n) where n is the size of the sequence. Binary search is one of the most frequently asked type of problems in technical interviews. Many candidates struggle when the sequence of items contains duplicates. Template Below is a Python binary search template that works for duplicate items:
Many interviewers intentionally ask the question in an ambiguous fashion to invite clarification questions. Before proceeding, ask the interviewer some clarification questions such as “What should I do if the array is empty” “Can I expect the input to be reasonable?” “Can there be duplicates in the input array?” See also: FAANG Software Engineer Interview If you need to assume something - double check your assumption with the interviewer!
Are you a fresh graduate or an expert developer, if you have not been introduced to Leetcode it can mean 2 things a) you have been in the same company for 7+ years or b) you are not targeting top tier companies. Leetcode is probably the most critical thing you can do as an SDE to land a job at any top tier companies.After training 100’s of SDE’s to get into top tech companies, I have realized that it is not about smarts but it is all about Tenacity and Leetcoding.
One of my candidates recently asked me a system design question in an email.I thought will be nice to document my response and seek advice from my peers who might have interesting practical experiences.I will keep this updated as new responses come by and hopefully we have something interesting. If you are reading this blog and have something to add please email me at rsalota@interviewhelp.io Hi Rahul, Where can I get approximate numbers for the max reads / writes per second supported by various database types ; Relational vs Key-Value vs Column (Cassandra and Hbase) vs In memory (Redis/Memcached).
There are so many System Design Resources on the internet that it is hard to keep track and know which ones to follow and which ones to discard. I love these resources and have used them to train multiple successful candidates. MySQL at Scale at Square MySQL v/s MongoDB Cloud Design Patterns Designing Data-Intensive Applications Grokking the System Design Interview Latency Numbers Every Engineer Should Know System Design Cheatsheet Awesome Scalability How Web Works The System Design Primer Interested to know more?