SlideShare a Scribd company logo
Ace the
coding
interview
ProgrammingInterviewPrep.com
Who are we?
Software Engineers with a passion for programming, problem
solving and the community
ProgrammingInterviewPrep.com
What is an interview (and what it is
not..)?
An interaction to determine candidate’s problem solving ability
● Given a problem, how does candidate approach it
○ Structured approach - Decomposing, patterns, sub-problems, simplifying etc..
● Clean and modular code
● Working code, potentially bug free
● How well ideas are communicated
ProgrammingInterviewPrep.com
The process
Talk to
Recruiter
On-site
Phone
Interview
Coding
Test
Hiring
Committee
1. Practice tools
- Leetcode
- InterviewBit
- Geeksforgeeks
2. Efficient vs complete code
3. Document a better approach
if you cannot code it
4. Readable, well commented
code
1. Coding test on a shared
document
2. Communication of ideas
important
3. Be sure to discuss your
solution before you start
coding
Several rounds, ~45 minutes
- 5 minutes : Resume
- 35 minutes : Whiteboarding
- 5 mins : Questions
Design questions and hiring
manager interview.
ProgrammingInterviewPrep.com
Approaching a programming problem
Start with an Example
Communicate
Brute Force
Optimizations
Trade-offs
Write code
Test your code
1. Solve using pen and
paper
1. Solve a simplified
version of problem
1. Datastructures
1. Algorithms
1. Design patterns
- sliding window
- Array out of bounds
- Null/None values
- Hashmap keys present?
- Recursion base case
- Start after you are clear
on solution
- Clean code
- Modular code
- Start with high level
logic
ProgrammingInterviewPrep.com
Approaching a problem - example
Given an array of Integers, check if there are duplicates.
[1,3,6,9,22,6,3] True
[1,3,6,9,22,8,4] False
ProgrammingInterviewPrep.com
Approaching a problem - example
(continued)
for(int i=0; i<array.length; i++) {
for(int j =i+1; j<array.length; j++) {
if (array[i] == array[j])
return true;
}
}
return false;
Brute-force
ProgrammingInterviewPrep.com
Approaching a problem - example
(continued)
Hash
Tables
Stacks
Queues
Heaps
Sort
Arrays.sort(array);
for (int i =0; i<array.length ; i++) {
if (array[i] == array[i+1]) {
return true;
}
}
return false;
Sort Hash
Tables
ProgrammingInterviewPrep.com
Can you spot a bug in the code?
Approaching a problem - example
(continued)
Arrays.sort(array);
for (int i =0; i<array.length ; i++) {
if (array[i] == array[i+1]) {
return true;
}
}
return false;
ProgrammingInterviewPrep.com
Types of questions
● Knowledge based questions
● Programming language questions
● Core computer science concept questions
● Data Structures
Arrays
Hash
Tables
Stacks
And
Queues
Linked
Lists
Trees
and
Graphs
Heaps
ProgrammingInterviewPrep.com
Types of questions
● Algorithms
● Code complexity
● System Design
● Object oriented design
● Behavioral questions
Recursion Dynamic Programming
Tree/Graph
Traversal
Searching Sorting
ProgrammingInterviewPrep.com
Good habits that will stack odds in
your favor
● Solve problems passively while doing chores like walking your dog
● Find a buddy
● Whiteboard practice! (but don’t neglect to execute your code)
● If stuck during interview, communicate what you are thinking
● Don’t start interviewing with your dream company; go bottom up
● Negotiating power: Your power is the # of competing job offers
ProgrammingInterviewPrep.com
Offerings
● Bootcamps
○ Covers the crux of programming interviews
■ Time complexity
■ Data structures
■ Algorithms (Advanced Recursion, Dynamic Programming, Graphs etc.)
■ System Design / OOP
○ Common interview patterns for efficient solutions
○ Interview prep techniques to write efficient and error free code under time pressure.
○ Behavior and situational Interview Prep
○ Resume and LinkedIn Inputs
○ Mock interview
○ 2 Weekend ( 4 hrs. each day)
ProgrammingInterviewPrep.com
Another coding question..
- Max Subarray Problem
[−2, 1, −3, 4, −1, 2, 1, −5, 4] ⇒ 6
ProgrammingInterviewPrep.com
Contact us
● Website http://programminginterviewprep.com/
● Email info@programminginterviewprep.com
● Meetup https://www.meetup.com/Programming-
Interview-Prep/

More Related Content

PDF
Better programmer overview
PDF
Think machine-learning-with-scikit-learn-chetan
PDF
A step towards machine learning at accionlabs
PPTX
Competitive Programming
PPTX
Session 3 : Competitive programming 1
PPT
Pieter and Ian FLL part 2
PPTX
Competitive Programming Guide
PDF
BINF 3121 Data Analysis Report How-To
Better programmer overview
Think machine-learning-with-scikit-learn-chetan
A step towards machine learning at accionlabs
Competitive Programming
Session 3 : Competitive programming 1
Pieter and Ian FLL part 2
Competitive Programming Guide
BINF 3121 Data Analysis Report How-To

What's hot (14)

PPTX
Career Options in Software Industry
PPT
Best Practices of Software Development
PPT
Aad motivation
PPT
An introduction to Competitive Programming
PPTX
Key learnings from my refactor journey.
PPT
Notesparadigms
PPTX
Problem solving
PPTX
Introduction to Competitive programming
PPTX
Eureka English Evening
ODP
Unit testing-patterns
PDF
Machine Learning Introduction
PPTX
Cracking the coding interview u penn - sept 30 2010
PDF
Test Driven Development
PDF
Workshop on programming contest
Career Options in Software Industry
Best Practices of Software Development
Aad motivation
An introduction to Competitive Programming
Key learnings from my refactor journey.
Notesparadigms
Problem solving
Introduction to Competitive programming
Eureka English Evening
Unit testing-patterns
Machine Learning Introduction
Cracking the coding interview u penn - sept 30 2010
Test Driven Development
Workshop on programming contest
Ad

Similar to Programming interview preparation (20)

PPTX
Cracking the Coding Interview
PPTX
Cracking The Technical Interview Uw
PDF
Extreme Programming practices for your team
ODP
Interview questions slide deck
DOCX
Top 10 Interview Questions for Coding Job.docx
DOCX
Top 10 Interview Questions for Coding Job.docx
PDF
How Indeed asks coding interview questions
PDF
Algorithm hierarchy
PPTX
_[Session #3 +4] Technical Skills +Interview Preparation.pptx
PDF
Greythorn Whiteboard Interview Guide
PPT
Interviews
PPTX
Rocking The Tech Interview
PDF
geekgap.io webinar #1
PPTX
How to Prepare for and Survive a Technical Interview
PPT
Algorithms the fundamentals, For computer Science.ppt
PDF
Surviving the technical interview
PDF
Data Abstraction Problem Solving with Java Walls and Mirrors 3rd ed Edition P...
PPTX
First session _Cracking the coding interview.pptx
PDF
Striver SDE Sheet (1).pdf
PPTX
Java-Programming.forBSITSTUDENTfreespptx
Cracking the Coding Interview
Cracking The Technical Interview Uw
Extreme Programming practices for your team
Interview questions slide deck
Top 10 Interview Questions for Coding Job.docx
Top 10 Interview Questions for Coding Job.docx
How Indeed asks coding interview questions
Algorithm hierarchy
_[Session #3 +4] Technical Skills +Interview Preparation.pptx
Greythorn Whiteboard Interview Guide
Interviews
Rocking The Tech Interview
geekgap.io webinar #1
How to Prepare for and Survive a Technical Interview
Algorithms the fundamentals, For computer Science.ppt
Surviving the technical interview
Data Abstraction Problem Solving with Java Walls and Mirrors 3rd ed Edition P...
First session _Cracking the coding interview.pptx
Striver SDE Sheet (1).pdf
Java-Programming.forBSITSTUDENTfreespptx
Ad

More from bigdata trunk (8)

PDF
Getting started with GCP ( Google Cloud Platform)
PDF
AI and ML for Everyone
PDF
Introduction of Artificial Intelligence and Machine Learning
PDF
Big Data Ecosystem after Spark
PDF
Introduction to machine learning algorithms
PDF
Data Science process
PDF
Machine Learning Intro for Anyone and Everyone
PDF
Apache Spark Introduction
Getting started with GCP ( Google Cloud Platform)
AI and ML for Everyone
Introduction of Artificial Intelligence and Machine Learning
Big Data Ecosystem after Spark
Introduction to machine learning algorithms
Data Science process
Machine Learning Intro for Anyone and Everyone
Apache Spark Introduction

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
master seminar digital applications in india
PPTX
Cell Structure & Organelles in detailed.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Lesson notes of climatology university.
PDF
Complications of Minimal Access Surgery at WLH
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Institutional Correction lecture only . . .
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Computing-Curriculum for Schools in Ghana
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Final Presentation General Medicine 03-08-2024.pptx
O7-L3 Supply Chain Operations - ICLT Program
master seminar digital applications in india
Cell Structure & Organelles in detailed.
2.FourierTransform-ShortQuestionswithAnswers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharma ospi slides which help in ospi learning
Lesson notes of climatology university.
Complications of Minimal Access Surgery at WLH
Chinmaya Tiranga quiz Grand Finale.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
human mycosis Human fungal infections are called human mycosis..pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Institutional Correction lecture only . . .
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Computing-Curriculum for Schools in Ghana
school management -TNTEU- B.Ed., Semester II Unit 1.pptx

Programming interview preparation

  • 2. Who are we? Software Engineers with a passion for programming, problem solving and the community ProgrammingInterviewPrep.com
  • 3. What is an interview (and what it is not..)? An interaction to determine candidate’s problem solving ability ● Given a problem, how does candidate approach it ○ Structured approach - Decomposing, patterns, sub-problems, simplifying etc.. ● Clean and modular code ● Working code, potentially bug free ● How well ideas are communicated ProgrammingInterviewPrep.com
  • 4. The process Talk to Recruiter On-site Phone Interview Coding Test Hiring Committee 1. Practice tools - Leetcode - InterviewBit - Geeksforgeeks 2. Efficient vs complete code 3. Document a better approach if you cannot code it 4. Readable, well commented code 1. Coding test on a shared document 2. Communication of ideas important 3. Be sure to discuss your solution before you start coding Several rounds, ~45 minutes - 5 minutes : Resume - 35 minutes : Whiteboarding - 5 mins : Questions Design questions and hiring manager interview. ProgrammingInterviewPrep.com
  • 5. Approaching a programming problem Start with an Example Communicate Brute Force Optimizations Trade-offs Write code Test your code 1. Solve using pen and paper 1. Solve a simplified version of problem 1. Datastructures 1. Algorithms 1. Design patterns - sliding window - Array out of bounds - Null/None values - Hashmap keys present? - Recursion base case - Start after you are clear on solution - Clean code - Modular code - Start with high level logic ProgrammingInterviewPrep.com
  • 6. Approaching a problem - example Given an array of Integers, check if there are duplicates. [1,3,6,9,22,6,3] True [1,3,6,9,22,8,4] False ProgrammingInterviewPrep.com
  • 7. Approaching a problem - example (continued) for(int i=0; i<array.length; i++) { for(int j =i+1; j<array.length; j++) { if (array[i] == array[j]) return true; } } return false; Brute-force ProgrammingInterviewPrep.com
  • 8. Approaching a problem - example (continued) Hash Tables Stacks Queues Heaps Sort Arrays.sort(array); for (int i =0; i<array.length ; i++) { if (array[i] == array[i+1]) { return true; } } return false; Sort Hash Tables ProgrammingInterviewPrep.com
  • 9. Can you spot a bug in the code? Approaching a problem - example (continued) Arrays.sort(array); for (int i =0; i<array.length ; i++) { if (array[i] == array[i+1]) { return true; } } return false; ProgrammingInterviewPrep.com
  • 10. Types of questions ● Knowledge based questions ● Programming language questions ● Core computer science concept questions ● Data Structures Arrays Hash Tables Stacks And Queues Linked Lists Trees and Graphs Heaps ProgrammingInterviewPrep.com
  • 11. Types of questions ● Algorithms ● Code complexity ● System Design ● Object oriented design ● Behavioral questions Recursion Dynamic Programming Tree/Graph Traversal Searching Sorting ProgrammingInterviewPrep.com
  • 12. Good habits that will stack odds in your favor ● Solve problems passively while doing chores like walking your dog ● Find a buddy ● Whiteboard practice! (but don’t neglect to execute your code) ● If stuck during interview, communicate what you are thinking ● Don’t start interviewing with your dream company; go bottom up ● Negotiating power: Your power is the # of competing job offers ProgrammingInterviewPrep.com
  • 13. Offerings ● Bootcamps ○ Covers the crux of programming interviews ■ Time complexity ■ Data structures ■ Algorithms (Advanced Recursion, Dynamic Programming, Graphs etc.) ■ System Design / OOP ○ Common interview patterns for efficient solutions ○ Interview prep techniques to write efficient and error free code under time pressure. ○ Behavior and situational Interview Prep ○ Resume and LinkedIn Inputs ○ Mock interview ○ 2 Weekend ( 4 hrs. each day) ProgrammingInterviewPrep.com
  • 14. Another coding question.. - Max Subarray Problem [−2, 1, −3, 4, −1, 2, 1, −5, 4] ⇒ 6 ProgrammingInterviewPrep.com
  • 15. Contact us ● Website http://programminginterviewprep.com/ ● Email [email protected] ● Meetup https://www.meetup.com/Programming- Interview-Prep/