Posts
One of the best-tested methods of problem-solving has been the 5 WHYs Technique - introduced by Sakichi Toyoda, referred to as the King of Japanese Inventors, and practiced by the Toyota Motor Corporation.
The “5-Whys’’ technique is a systematic and effective problem-solving method that determines the root cause and effect of particular problems by progressively asking “why”. This is one of the simplest tools which are easy to complete without statistical analysis.
Single Number
2022-04-14
Single Number Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.
Example 1: Input: nums = [2,2,1] Output: 1 Example 2: Input: nums = [4,1,2,1,2] Output: 4 Example 3: Input: nums = [1] Output: 1 Using a HashSet (linear space complexity) We can iterate nums and for each number n do the following:
If this is the first time we’ve seen n, then we add n to a hashset If the hashset contains n, then n gets removed from the hashset: 1 2 3 4 5 6 7 8 def get_single_number(nums: List[int]) -> int: uniques = set() for n in nums: if n not in uniques: uniques.
Prime Factorization of a Number
2022-04-14
Problem Statement How do we find all the prime factors of a given number?
For example, when n = 12, the output should be [2, 3]. Notice that 1, 4, 6, 12 are also factors of 12 but they aren’t prime and therefore should be excluded from the output.
Solution The following solution is straightforward:
1 2 3 4 5 6 7 8 9 10 def get_prime_factors(n: int) -> List[int]: prime_factors = [] prime = 2 while n > 1: while n % prime == 0: if not prime_factors or prime !
Find all prime numbers up to a given number
2022-04-14
Problem Statement How do we find all the prime numbers up to a given number?
For example, when n = 10, the output should be 4 since there are 4 prime numbers less than 10, namely 2, 3, 5, 7.
Naive Approach A naive approach would be to iterate from 2 to n and count the number of primes along the way:
1 2 3 4 5 def count_primes_less_than(n: int) -> int: return sum(is_prime(i) for i in range(2, n)) def is_prime(num: int) -> bool: return all(num % i !
Amazon System Design Interview Questions
2022-04-14
System design is defining the elements of a system, the different components of those elements, and the data of the system to satisfy specified requirements. System design round in the interview means scalable system design problems. Companies like Amazon use system design rounds in the interviews for tech roles. Many candidates consider the system design interview to be the most complex and most difficult technical job interview.
Well-preparation is a ‘must’ if you want to crack the system design interview and land a job offer in this top tech company.
Accenture has been conducting an off-campus drive. The company is planning to employ many students this year. The offer is for 4.5LPA and 6.5 LPA. If you want to get a job here, then keep reading. In this article, I’ll talk about how to crack the Accenture interview easily, with an accent on the technical interview.
Accenture is a well-known professional services company, with leading capabilities in digital, cloud, and security.
Associate product manager (APM) roles You might ask what is an associate product manager, or what does an associate product manager do? Well, the associate product manager is the first stop on the product manager’s career path. This is an entry role. For this product role, you must understand what product management is, and must have an obvious interest and passion for the customers.
Product management is a strategic function, and it’s hard to define in precise terms.
Amazon has a unique recruiting process. Its hiring decisions are based on cultural fit as much as a candidate’s qualifications. This term refers to Amazon’s 14 leadership principles that guide the company’s mission.
Before you go to the interview at Amazon, learn more about the Amazon interview process, prepare for Amazon’s interview questions, and find out how they hire the best.
Related read:
Amazon vs Google - Which one has the harder SDM interview process Software Development Manager’s roles and responsibilities Are you ready for Amazon?
Working in Apple comes with countless benefits, along with its challenges. Be prepared that working here implies working long hours, which means little work-life balance. This company is very secretive about a lot of the work that they do. Apple’s compensation is at the top end of the spectrum for all positions.
Related read - Software Development Manager’s roles and responsibilities
Before coming in for the interview, it’s important to stay updated with the latest Apple products and to have knowledge about the latest happenings in the tech industry.
Base Conversion
2022-04-14
Problem Given an integer num, return a string of its base 7 representation.
Example 1: Input: num = 100 Output: "202" Example 2: Input: num = -7 Output: "-10" Positive Case Base conversion can be done through a succession of Euclidean Division. We repeatedly divide n by base and store the remainder. Finally we reverse the obtained string.
1 2 3 4 5 6 7 8 def to_base_7_positive(num: int) -> str: """assume num is positive""" result = [] while num: num, r = divmod(num, 7) result.
Machine learning interviews can be hard and excruciating, especially if you don’t know what exactly you need to focus, for cracking the interview process. These interviews are more than just Q&A of basic machine learning concepts. The interviews for machine learning engineer roles evaluate a candidate’s capacity to solve complex real-world problems using machine learning methodologies, working with a team. Machine learning algorithms learn from the data, unlike the hard coding role to solve the problem.
Amazon vs Facebook, who has the harder interview process for TPM To crack technical program interviews, you must be very well prepared, otherwise, those interviews are tough to crack. Companies like Amazon and Facebook tend to ask three types of questions: Technical, behavioral, and program management. During your preparation, you have to cover a lot of ground.
Amazon and Facebook ask the same type of questions, but some question types are more frequent at one of these companies.
The primary role of a software development manager is to control the software development process. The software development manager coordinates the team members and the client, allocates the resources, and streamlines the processes.
Roles of software development manager Customer and user-focused manager, who understands business problems and company strategy, and works effectively to support business partners. A leader who provides clarity, transparency, and accountability to the team. A disciplined taskmaster who gets projects delivered on time on budget.
The technical program manager’s job is one of the expanding roles in companies today in our digital world. The technical program manager’s role is to be your source of truth and realism. And to achieve company goals and visions through programs, and project delivered by him.
See also:** Facebook Technical Program Management Interview Questions**
Roles of technical program manager at Facebook As the name of the technical program manager implies, there is a technical component and program management component.
Interview questions for Communications Manager How can social media promote brand image? What important factors do you evaluate before developing a communications strategy for a new product? Can you describe a time a brand campaign didn’t perform as well as you expected? How did you handle it? What do you think is the most important part of successfully leading a communications department? What factors do you consider before releasing a press release about a new product or service?
Interview questions for Content marketing manager What are some examples of on-page SEO? Why do you want to work in the field of content management? What have you done in this field before? What were some of your biggest challenges in the workplace and how did you overcome them? How do you determine the style or tone of a piece of content? Describe the role of data in your job.
Interview questions for Digital marketing Manager What is Digital Marketing, and why do you have a career in this field? How You Can Classify Digital Marketing? What is the most important, effective, and useful digital marketing tool? Why are online marketing companies and business stores more beneficial than offline marketing? What important role does SEO play in digital marketing? Who is called streaming keyword? What are important keywords for website and blogger ranking and optimizing?
Interview questions for Marketing Manager Hard skills interview questions:
What’s your understanding of our target audience and how we help them? Imagine we’re about to release a new product in three months. How would you help orchestrate a successful launch with a budget of $500K, including media spend? What do you think sets our brand apart from our competitors? Behavioral:
Tell me about a time when you had to act quickly but didn’t have a lot of data to inform your decision.
Interview questions for Social Media Manager Tell me about yourself. What are your interests outside of work? How did you get into social media? How would your previous employer describe you? Why are you interested in this role? What about our company interests you? Why do you want to work for our company? What is your favorite social media platform? Why? What skills help you to be an effective social media manager?
Amazon vs Google - Which one has the harder interview process for Software Development Manager Amazon SDM interview process The Amazon software development manager interview process usually takes 2-4 weeks to complete. But in some cases, it can take 7+ weeks. This process follows the below steps:
Cover letter, resume Recruiter call Initial interview Onsite interviews (including five interviews) You will be interviewing for 45 minutes each interview (1–3 questions each) and have 5–7 interviewers.
What to expect: Solution Architect Interview for Amazon and Google (Solution architecture for AWS and Google Cloud) Solution architect for Amazon If you’re preparing for a Solutions Architect interview for Amazon, make sure that you’re technically strong. It’s important to have a strong understanding of System Design, Software Engineering Principles, and Networking Concepts. If you have a basic knowledge of AWS it will be beneficial.
You should understand below concepts:
How to prepare for Google coding challenge
2022-04-14
Coding challenges are technological developments designed to test your knowledge of algorithms and data structures.
The company invites developers to participate in these events, solves coding problems, and wins top competition awards. Google runs three coding challenges each year.
Preparing for a coding challenge can prepare you for interviews at large technology firms, as FAANG and tier-1 Technical interviews also revolve around troubleshooting algorithms and data structures.
See also:
FAANG Software Engineering Interview How to pass the googlyness interview So, how to prepare for a coding challenge (at Google interview)?
Time required for TPM interview preparation for FAANG People often ask how long it takes to prepare for an interview, what should I do to prepare for an interview within a few weeks.
In this article, I will not talk about any shortcuts or tricks that will magically allow you to receive offers effortlessly, but we want to help you focus on what is important when preparing for an interview for a TPM position.
Everyone gets nervous before an important job interview - that’s perfectly normal, and it is just a sign that you want to do well and want to get this job.
Your anxiety can motivate you to prepare better, it can provide you with energy and keep you alert during the interview process. But anxiety has a dangerous side, so it can also prevent you from doing your best by distracting you or weakening your memory.
Success and scale bring broad responsibility
2022-04-14
Success and scale bring broad responsibility Amazon’s leadership principles describe how Amazonian do business, how their leaders lead, and how they keep the customer at the center of their decisions. The leadership principles describe Amazon’s culture. The 16th Amazon leadership principle is “success and scale bring broad responsibility”.
How does Amazon explain the “success and scale bring broad responsibility” principle, what does it mean? With the principle “success and scale bring broad responsibility”, Amazon is demanding from its leaders a recognition of the societal impact and insisting they build that consideration into their decision-making frameworks.