際際滷

際際滷Share a Scribd company logo
50 Must Know Coding
Interview Questions
Coding interview questions
comprises of;
Arrays, Linked List, Variables, Binary Tree and Other
Questions related to programming language construct
Here youll find 50 most relevant questions that you can
certainly expect to be asked during the interview.
You should frame your own answers reading through the
resources, solving programming exercises and framing
answers based on your understanding.
Choose programming language of your choice to answer
these questions
Coding Interview Questions on Array
How do you find the largest and
smallest number in an unsorted
integer array?
Que.1
How do you find the missing number
in a given integer array of 1 to 50?
Que.2
How do you find the largest and
smallest number in an unsorted
integer array?
Que.3
How do you find all pairs of an integer
array whose sum is equal to a given
number?
Que.4
How do you find duplicate numbers in
an array if it contains multiple
duplicates?
Que.5
How are duplicates removed from a
given array in C/C++?
Que.6
How is an integer array sorted in place
using the quicksort algorithm?
Que.7
How do you remove duplicates from
an array in place?
Que.8
How do you reverse an array in place
in C/C++?
Que.9
How are duplicates removed from an
array without using any library?
Que.10
Linked List Coding Interview Questions
How do you find the middle element of
a singly linked list in one pass?
Que.1
How do you check if a given linked list
contains a cycle? How do you find the
starting node of the cycle?
Que.2
How do you reverse a linked list?
Que.3
How do you reverse a singly linked list
without recursion?
Que.4
How are duplicate nodes removed in
an unsorted linked list?
Que.5
How do you find the length of a singly
linked list?
Que.6
How do you find the third node from
the end in a singly linked list?
Que.7
How do you find the sum of two linked
lists using Stack?
Que.8
String Related Interview Questions
How do you print duplicate characters
from a string?
Que.1
How do you check if two strings are
anagrams of each other?
Que.2
How do you print the first non-
repeated character from a string?
Que.3
How can a given string be reversed
using recursion?
Que.4
How do you check if a string contains
only digits?
Que.5
How are duplicate characters found in
a string?
Que.6
How do you count a number of vowels
and consonants in a given string?
Que.7
How do you count the occurrence of a
given character in a string?
Que.8
How do you find all permutations of a
string?
Que.9
How do you reverse words in a given
sentence without using any library
method?
Que.10
How do you check if two strings are a
rotation of each other?
Que.11
How do you check if a given string is a
palindrome?
Que.12
Other Programming Concept Related
Interview Questions
How is a binary search tree
implemented?
Que.1
How do you perform preorder
traversal in a given binary tree?
Que.2
How do you traverse a given binary
tree in preorder without recursion?
Que.3
How do you perform an inorder
traversal in a given binary tree?
Que.4
How do you print all nodes of a given
binary tree using inorder traversal
without recursion?
Que.5
How do you implement a postorder
traversal algorithm?
Que.6
How do you traverse a binary tree in
postorder traversal without
recursion?
Que.7
How are all leaves of a binary search
tree printed?
Que.8
How do you count a number of leaf
nodes in a given binary tree?
Que.9
How do you perform a binary search
in a given array?
Que.10
Miscellaneous Programming Related
Interview Questions
How is a bubble sort algorithm
implemented?
Que.1
How is an iterative quicksort algorithm
implemented?
Que.2
How do you implement an insertion
sort algorithm?
Que.3
How is a merge sort algorithm
implemented?
Que.4
How do you implement a bucket sort
algorithm?
Que.5
How do you implement a counting
sort algorithm?
Que.6
How is a radix sort algorithm
implemented?
Que.7
How do you swap two numbers
without using the third variable?
Que.8
How do you check if two rectangles
overlap with each other?
Que.9
How do you design a vending
machine?
Que.10
Once you are prepared to answer these
questions and their solutions, logon to
MockRabbit app and check whether you
can answer these questions confidently.

More Related Content

What's hot (7)

Deep Dependency Graph Conversion in English
Deep Dependency Graph Conversion in EnglishDeep Dependency Graph Conversion in English
Deep Dependency Graph Conversion in English
Jinho Choi
Cs6503 theory of computation syllabus
Cs6503 theory of computation syllabusCs6503 theory of computation syllabus
Cs6503 theory of computation syllabus
appasami
20. quiz
20. quiz20. quiz
20. quiz
khoahuy82
Arguments
ArgumentsArguments
Arguments
Avone Lumanao
Logic
LogicLogic
Logic
H K
Chaps 1-3-ai-prolog
Chaps 1-3-ai-prologChaps 1-3-ai-prolog
Chaps 1-3-ai-prolog
saru40
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
Nitesh Singh
Deep Dependency Graph Conversion in English
Deep Dependency Graph Conversion in EnglishDeep Dependency Graph Conversion in English
Deep Dependency Graph Conversion in English
Jinho Choi
Cs6503 theory of computation syllabus
Cs6503 theory of computation syllabusCs6503 theory of computation syllabus
Cs6503 theory of computation syllabus
appasami
Logic
LogicLogic
Logic
H K
Chaps 1-3-ai-prolog
Chaps 1-3-ai-prologChaps 1-3-ai-prolog
Chaps 1-3-ai-prolog
saru40
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
Nitesh Singh

Similar to 50 must know coding interview questions (20)

Ds 111011055724-phpapp01
Ds 111011055724-phpapp01Ds 111011055724-phpapp01
Ds 111011055724-phpapp01
Getachew Ganfur
Ruby Egison
Ruby EgisonRuby Egison
Ruby Egison
Rakuten Group, Inc.
ISEC-2021-Presentation-Saikat-Mondal
ISEC-2021-Presentation-Saikat-MondalISEC-2021-Presentation-Saikat-Mondal
ISEC-2021-Presentation-Saikat-Mondal
University of Saskatchewan
Chapter 5 searching and sorting handouts with notes
Chapter 5   searching and sorting handouts with notesChapter 5   searching and sorting handouts with notes
Chapter 5 searching and sorting handouts with notes
mailund
Spreadsheets for developers
Spreadsheets for developersSpreadsheets for developers
Spreadsheets for developers
Felienne Hermans
3. python intro
3. python   intro3. python   intro
3. python intro
in4400
Data structure-questions
Data structure-questionsData structure-questions
Data structure-questions
Shekhar Chander
DSA Question Bank
DSA Question BankDSA Question Bank
DSA Question Bank
To Sum It Up
Spreadsheets are graphs too: Using Neo4J as backend to store spreadsheet info...
Spreadsheets are graphs too: Using Neo4J as backend to store spreadsheet info...Spreadsheets are graphs too: Using Neo4J as backend to store spreadsheet info...
Spreadsheets are graphs too: Using Neo4J as backend to store spreadsheet info...
Felienne Hermans
C language 100 questions answers
C language 100 questions answersC language 100 questions answers
C language 100 questions answers
sakshitiwari631430
Learning Python - Week 1
Learning Python - Week 1Learning Python - Week 1
Learning Python - Week 1
Mindy McAdams
Mastering Python lesson3b_for_loops
Mastering Python lesson3b_for_loopsMastering Python lesson3b_for_loops
Mastering Python lesson3b_for_loops
Ruth Marvin
130102 venera arnaoudova - a new family of software anti-patterns linguisti...
130102   venera arnaoudova - a new family of software anti-patterns linguisti...130102   venera arnaoudova - a new family of software anti-patterns linguisti...
130102 venera arnaoudova - a new family of software anti-patterns linguisti...
Ptidej Team
Instructions 揃 Take this test during the week (with late submiss.docx
Instructions 揃 Take this test during the week (with late submiss.docxInstructions 揃 Take this test during the week (with late submiss.docx
Instructions 揃 Take this test during the week (with late submiss.docx
normanibarber20063
Top 10 Interview Questions for Coding Job.docx
Top 10 Interview Questions for Coding Job.docxTop 10 Interview Questions for Coding Job.docx
Top 10 Interview Questions for Coding Job.docx
Surendra Gusain
Top 10 Interview Questions for Coding Job.docx
Top 10 Interview Questions for Coding Job.docxTop 10 Interview Questions for Coding Job.docx
Top 10 Interview Questions for Coding Job.docx
Surendra Gusain
Souvenir's Booth - Algorithm Design and Analysis Project Project Report
Souvenir's Booth - Algorithm Design and Analysis Project Project ReportSouvenir's Booth - Algorithm Design and Analysis Project Project Report
Souvenir's Booth - Algorithm Design and Analysis Project Project Report
Akshit Arora
C faqs interview questions placement paper 2013
C faqs interview questions placement paper 2013C faqs interview questions placement paper 2013
C faqs interview questions placement paper 2013
srikanthreddy004
Data Structures- Part1 overview and review
Data Structures- Part1 overview and reviewData Structures- Part1 overview and review
Data Structures- Part1 overview and review
Abdullah Al-hazmy
Prompt-Engineering-Lecture-Elvis learn prompt engineering
Prompt-Engineering-Lecture-Elvis learn prompt engineeringPrompt-Engineering-Lecture-Elvis learn prompt engineering
Prompt-Engineering-Lecture-Elvis learn prompt engineering
SaweraKhadium
Ds 111011055724-phpapp01
Ds 111011055724-phpapp01Ds 111011055724-phpapp01
Ds 111011055724-phpapp01
Getachew Ganfur
Chapter 5 searching and sorting handouts with notes
Chapter 5   searching and sorting handouts with notesChapter 5   searching and sorting handouts with notes
Chapter 5 searching and sorting handouts with notes
mailund
Spreadsheets for developers
Spreadsheets for developersSpreadsheets for developers
Spreadsheets for developers
Felienne Hermans
3. python intro
3. python   intro3. python   intro
3. python intro
in4400
Data structure-questions
Data structure-questionsData structure-questions
Data structure-questions
Shekhar Chander
DSA Question Bank
DSA Question BankDSA Question Bank
DSA Question Bank
To Sum It Up
Spreadsheets are graphs too: Using Neo4J as backend to store spreadsheet info...
Spreadsheets are graphs too: Using Neo4J as backend to store spreadsheet info...Spreadsheets are graphs too: Using Neo4J as backend to store spreadsheet info...
Spreadsheets are graphs too: Using Neo4J as backend to store spreadsheet info...
Felienne Hermans
C language 100 questions answers
C language 100 questions answersC language 100 questions answers
C language 100 questions answers
sakshitiwari631430
Learning Python - Week 1
Learning Python - Week 1Learning Python - Week 1
Learning Python - Week 1
Mindy McAdams
Mastering Python lesson3b_for_loops
Mastering Python lesson3b_for_loopsMastering Python lesson3b_for_loops
Mastering Python lesson3b_for_loops
Ruth Marvin
130102 venera arnaoudova - a new family of software anti-patterns linguisti...
130102   venera arnaoudova - a new family of software anti-patterns linguisti...130102   venera arnaoudova - a new family of software anti-patterns linguisti...
130102 venera arnaoudova - a new family of software anti-patterns linguisti...
Ptidej Team
Instructions 揃 Take this test during the week (with late submiss.docx
Instructions 揃 Take this test during the week (with late submiss.docxInstructions 揃 Take this test during the week (with late submiss.docx
Instructions 揃 Take this test during the week (with late submiss.docx
normanibarber20063
Top 10 Interview Questions for Coding Job.docx
Top 10 Interview Questions for Coding Job.docxTop 10 Interview Questions for Coding Job.docx
Top 10 Interview Questions for Coding Job.docx
Surendra Gusain
Top 10 Interview Questions for Coding Job.docx
Top 10 Interview Questions for Coding Job.docxTop 10 Interview Questions for Coding Job.docx
Top 10 Interview Questions for Coding Job.docx
Surendra Gusain
Souvenir's Booth - Algorithm Design and Analysis Project Project Report
Souvenir's Booth - Algorithm Design and Analysis Project Project ReportSouvenir's Booth - Algorithm Design and Analysis Project Project Report
Souvenir's Booth - Algorithm Design and Analysis Project Project Report
Akshit Arora
C faqs interview questions placement paper 2013
C faqs interview questions placement paper 2013C faqs interview questions placement paper 2013
C faqs interview questions placement paper 2013
srikanthreddy004
Data Structures- Part1 overview and review
Data Structures- Part1 overview and reviewData Structures- Part1 overview and review
Data Structures- Part1 overview and review
Abdullah Al-hazmy
Prompt-Engineering-Lecture-Elvis learn prompt engineering
Prompt-Engineering-Lecture-Elvis learn prompt engineeringPrompt-Engineering-Lecture-Elvis learn prompt engineering
Prompt-Engineering-Lecture-Elvis learn prompt engineering
SaweraKhadium

More from Ishwar Jha (7)

12 Powerful Business Canvas To Think, Plan and Action Your Business Model, Sa...
12 Powerful Business Canvas To Think, Plan and Action Your Business Model, Sa...12 Powerful Business Canvas To Think, Plan and Action Your Business Model, Sa...
12 Powerful Business Canvas To Think, Plan and Action Your Business Model, Sa...
Ishwar Jha
The Little Big Secret Of Landing Into Your First Job And Kickstart Your Rocks...
The Little Big Secret Of Landing Into Your First Job And Kickstart Your Rocks...The Little Big Secret Of Landing Into Your First Job And Kickstart Your Rocks...
The Little Big Secret Of Landing Into Your First Job And Kickstart Your Rocks...
Ishwar Jha
Bootstrapping, your way to succeed in starting up and launching fabulously
Bootstrapping, your way to succeed in starting up and launching fabulouslyBootstrapping, your way to succeed in starting up and launching fabulously
Bootstrapping, your way to succeed in starting up and launching fabulously
Ishwar Jha
7 negative habits of people that annoy friends and alienate others
7 negative habits of people that annoy friends and alienate others 7 negative habits of people that annoy friends and alienate others
7 negative habits of people that annoy friends and alienate others
Ishwar Jha
8 limbs of living healthy happy and holistic
8 limbs of living healthy happy and holistic8 limbs of living healthy happy and holistic
8 limbs of living healthy happy and holistic
Ishwar Jha
Seven sercets of a rockstar programmer
Seven sercets of a rockstar programmerSeven sercets of a rockstar programmer
Seven sercets of a rockstar programmer
Ishwar Jha
Profitable business opportunities
Profitable business opportunitiesProfitable business opportunities
Profitable business opportunities
Ishwar Jha
12 Powerful Business Canvas To Think, Plan and Action Your Business Model, Sa...
12 Powerful Business Canvas To Think, Plan and Action Your Business Model, Sa...12 Powerful Business Canvas To Think, Plan and Action Your Business Model, Sa...
12 Powerful Business Canvas To Think, Plan and Action Your Business Model, Sa...
Ishwar Jha
The Little Big Secret Of Landing Into Your First Job And Kickstart Your Rocks...
The Little Big Secret Of Landing Into Your First Job And Kickstart Your Rocks...The Little Big Secret Of Landing Into Your First Job And Kickstart Your Rocks...
The Little Big Secret Of Landing Into Your First Job And Kickstart Your Rocks...
Ishwar Jha
Bootstrapping, your way to succeed in starting up and launching fabulously
Bootstrapping, your way to succeed in starting up and launching fabulouslyBootstrapping, your way to succeed in starting up and launching fabulously
Bootstrapping, your way to succeed in starting up and launching fabulously
Ishwar Jha
7 negative habits of people that annoy friends and alienate others
7 negative habits of people that annoy friends and alienate others 7 negative habits of people that annoy friends and alienate others
7 negative habits of people that annoy friends and alienate others
Ishwar Jha
8 limbs of living healthy happy and holistic
8 limbs of living healthy happy and holistic8 limbs of living healthy happy and holistic
8 limbs of living healthy happy and holistic
Ishwar Jha
Seven sercets of a rockstar programmer
Seven sercets of a rockstar programmerSeven sercets of a rockstar programmer
Seven sercets of a rockstar programmer
Ishwar Jha
Profitable business opportunities
Profitable business opportunitiesProfitable business opportunities
Profitable business opportunities
Ishwar Jha

Recently uploaded (20)

Pulp and Paper industry in the starting phase
Pulp and Paper industry in the starting phasePulp and Paper industry in the starting phase
Pulp and Paper industry in the starting phase
annu22274
Biography of Jason Hornady
Biography of Jason HornadyBiography of Jason Hornady
Biography of Jason Hornady
Jason Hornady
Cv Ali abdi green cv of nutrients food section
Cv Ali abdi green cv of nutrients food sectionCv Ali abdi green cv of nutrients food section
Cv Ali abdi green cv of nutrients food section
aliabdi2114
1235456325682023542569542633portfolio-.ppt
1235456325682023542569542633portfolio-.ppt1235456325682023542569542633portfolio-.ppt
1235456325682023542569542633portfolio-.ppt
ghisreeni
Resume Builder (9) [Autosaved].pptxjkdee
Resume Builder (9) [Autosaved].pptxjkdeeResume Builder (9) [Autosaved].pptxjkdee
Resume Builder (9) [Autosaved].pptxjkdee
sohail4hmed4
digital marketing course in a chandigarh
digital marketing course in a chandigarhdigital marketing course in a chandigarh
digital marketing course in a chandigarh
banshikaexcellencete
BAGC0125 SEED TECHNOLOGY M AIZE PPT.pptx
BAGC0125 SEED TECHNOLOGY M AIZE PPT.pptxBAGC0125 SEED TECHNOLOGY M AIZE PPT.pptx
BAGC0125 SEED TECHNOLOGY M AIZE PPT.pptx
mchanduyadav3
Yashaswani Bajaj : IE University, Express Yourself
Yashaswani Bajaj : IE University, Express YourselfYashaswani Bajaj : IE University, Express Yourself
Yashaswani Bajaj : IE University, Express Yourself
yashaswani707
Understanding Power of Diverse Perspectives
Understanding Power of Diverse PerspectivesUnderstanding Power of Diverse Perspectives
Understanding Power of Diverse Perspectives
StrengthsTheatre
Chapter1 - human resources management.ppt
Chapter1 - human resources management.pptChapter1 - human resources management.ppt
Chapter1 - human resources management.ppt
JosephNader8
SIH2024_IDEA_Presentation_Format[2].pptx
SIH2024_IDEA_Presentation_Format[2].pptxSIH2024_IDEA_Presentation_Format[2].pptx
SIH2024_IDEA_Presentation_Format[2].pptx
Heresh5
Biography and career history of Alex Karman
Biography and career history of Alex KarmanBiography and career history of Alex Karman
Biography and career history of Alex Karman
Alex Karman
Sample_Communication-Ess-Presentation.pptx
Sample_Communication-Ess-Presentation.pptxSample_Communication-Ess-Presentation.pptx
Sample_Communication-Ess-Presentation.pptx
JedRickSanariz
The art of creating a well structured CV.
The art of creating a well structured CV.The art of creating a well structured CV.
The art of creating a well structured CV.
mallikas2310
Developing-Instructional-Plan-in-PE-and-Health.pptx
Developing-Instructional-Plan-in-PE-and-Health.pptxDeveloping-Instructional-Plan-in-PE-and-Health.pptx
Developing-Instructional-Plan-in-PE-and-Health.pptx
ayessamaymagayon
digital-makarketing-course-in-thrissur.pdf
digital-makarketing-course-in-thrissur.pdfdigital-makarketing-course-in-thrissur.pdf
digital-makarketing-course-in-thrissur.pdf
sajikayikudam1
Carrier Opportunities in Pharmacy and Pharmaceuticalspptx
Carrier Opportunities in Pharmacy and PharmaceuticalspptxCarrier Opportunities in Pharmacy and Pharmaceuticalspptx
Carrier Opportunities in Pharmacy and Pharmaceuticalspptx
Quantum University, Roorkee
02. Basic Electromagnetic Force Field Attorney Letter
02. Basic Electromagnetic Force Field Attorney Letter02. Basic Electromagnetic Force Field Attorney Letter
02. Basic Electromagnetic Force Field Attorney Letter
Manu Mitra
Bergey_Kyle_SC_PB2_2025_March (Project 2)
Bergey_Kyle_SC_PB2_2025_March (Project 2)Bergey_Kyle_SC_PB2_2025_March (Project 2)
Bergey_Kyle_SC_PB2_2025_March (Project 2)
kbergey9
Dr. Nazrul Islam, Professor of International Business, Independent University...
Dr. Nazrul Islam, Professor of International Business, Independent University...Dr. Nazrul Islam, Professor of International Business, Independent University...
Dr. Nazrul Islam, Professor of International Business, Independent University...
Dr. Nazrul Islam
Pulp and Paper industry in the starting phase
Pulp and Paper industry in the starting phasePulp and Paper industry in the starting phase
Pulp and Paper industry in the starting phase
annu22274
Biography of Jason Hornady
Biography of Jason HornadyBiography of Jason Hornady
Biography of Jason Hornady
Jason Hornady
Cv Ali abdi green cv of nutrients food section
Cv Ali abdi green cv of nutrients food sectionCv Ali abdi green cv of nutrients food section
Cv Ali abdi green cv of nutrients food section
aliabdi2114
1235456325682023542569542633portfolio-.ppt
1235456325682023542569542633portfolio-.ppt1235456325682023542569542633portfolio-.ppt
1235456325682023542569542633portfolio-.ppt
ghisreeni
Resume Builder (9) [Autosaved].pptxjkdee
Resume Builder (9) [Autosaved].pptxjkdeeResume Builder (9) [Autosaved].pptxjkdee
Resume Builder (9) [Autosaved].pptxjkdee
sohail4hmed4
digital marketing course in a chandigarh
digital marketing course in a chandigarhdigital marketing course in a chandigarh
digital marketing course in a chandigarh
banshikaexcellencete
BAGC0125 SEED TECHNOLOGY M AIZE PPT.pptx
BAGC0125 SEED TECHNOLOGY M AIZE PPT.pptxBAGC0125 SEED TECHNOLOGY M AIZE PPT.pptx
BAGC0125 SEED TECHNOLOGY M AIZE PPT.pptx
mchanduyadav3
Yashaswani Bajaj : IE University, Express Yourself
Yashaswani Bajaj : IE University, Express YourselfYashaswani Bajaj : IE University, Express Yourself
Yashaswani Bajaj : IE University, Express Yourself
yashaswani707
Understanding Power of Diverse Perspectives
Understanding Power of Diverse PerspectivesUnderstanding Power of Diverse Perspectives
Understanding Power of Diverse Perspectives
StrengthsTheatre
Chapter1 - human resources management.ppt
Chapter1 - human resources management.pptChapter1 - human resources management.ppt
Chapter1 - human resources management.ppt
JosephNader8
SIH2024_IDEA_Presentation_Format[2].pptx
SIH2024_IDEA_Presentation_Format[2].pptxSIH2024_IDEA_Presentation_Format[2].pptx
SIH2024_IDEA_Presentation_Format[2].pptx
Heresh5
Biography and career history of Alex Karman
Biography and career history of Alex KarmanBiography and career history of Alex Karman
Biography and career history of Alex Karman
Alex Karman
Sample_Communication-Ess-Presentation.pptx
Sample_Communication-Ess-Presentation.pptxSample_Communication-Ess-Presentation.pptx
Sample_Communication-Ess-Presentation.pptx
JedRickSanariz
The art of creating a well structured CV.
The art of creating a well structured CV.The art of creating a well structured CV.
The art of creating a well structured CV.
mallikas2310
Developing-Instructional-Plan-in-PE-and-Health.pptx
Developing-Instructional-Plan-in-PE-and-Health.pptxDeveloping-Instructional-Plan-in-PE-and-Health.pptx
Developing-Instructional-Plan-in-PE-and-Health.pptx
ayessamaymagayon
digital-makarketing-course-in-thrissur.pdf
digital-makarketing-course-in-thrissur.pdfdigital-makarketing-course-in-thrissur.pdf
digital-makarketing-course-in-thrissur.pdf
sajikayikudam1
Carrier Opportunities in Pharmacy and Pharmaceuticalspptx
Carrier Opportunities in Pharmacy and PharmaceuticalspptxCarrier Opportunities in Pharmacy and Pharmaceuticalspptx
Carrier Opportunities in Pharmacy and Pharmaceuticalspptx
Quantum University, Roorkee
02. Basic Electromagnetic Force Field Attorney Letter
02. Basic Electromagnetic Force Field Attorney Letter02. Basic Electromagnetic Force Field Attorney Letter
02. Basic Electromagnetic Force Field Attorney Letter
Manu Mitra
Bergey_Kyle_SC_PB2_2025_March (Project 2)
Bergey_Kyle_SC_PB2_2025_March (Project 2)Bergey_Kyle_SC_PB2_2025_March (Project 2)
Bergey_Kyle_SC_PB2_2025_March (Project 2)
kbergey9
Dr. Nazrul Islam, Professor of International Business, Independent University...
Dr. Nazrul Islam, Professor of International Business, Independent University...Dr. Nazrul Islam, Professor of International Business, Independent University...
Dr. Nazrul Islam, Professor of International Business, Independent University...
Dr. Nazrul Islam

50 must know coding interview questions

  • 1. 50 Must Know Coding Interview Questions
  • 2. Coding interview questions comprises of; Arrays, Linked List, Variables, Binary Tree and Other Questions related to programming language construct Here youll find 50 most relevant questions that you can certainly expect to be asked during the interview. You should frame your own answers reading through the resources, solving programming exercises and framing answers based on your understanding. Choose programming language of your choice to answer these questions
  • 4. How do you find the largest and smallest number in an unsorted integer array? Que.1
  • 5. How do you find the missing number in a given integer array of 1 to 50? Que.2
  • 6. How do you find the largest and smallest number in an unsorted integer array? Que.3
  • 7. How do you find all pairs of an integer array whose sum is equal to a given number? Que.4
  • 8. How do you find duplicate numbers in an array if it contains multiple duplicates? Que.5
  • 9. How are duplicates removed from a given array in C/C++? Que.6
  • 10. How is an integer array sorted in place using the quicksort algorithm? Que.7
  • 11. How do you remove duplicates from an array in place? Que.8
  • 12. How do you reverse an array in place in C/C++? Que.9
  • 13. How are duplicates removed from an array without using any library? Que.10
  • 14. Linked List Coding Interview Questions
  • 15. How do you find the middle element of a singly linked list in one pass? Que.1
  • 16. How do you check if a given linked list contains a cycle? How do you find the starting node of the cycle? Que.2
  • 17. How do you reverse a linked list? Que.3
  • 18. How do you reverse a singly linked list without recursion? Que.4
  • 19. How are duplicate nodes removed in an unsorted linked list? Que.5
  • 20. How do you find the length of a singly linked list? Que.6
  • 21. How do you find the third node from the end in a singly linked list? Que.7
  • 22. How do you find the sum of two linked lists using Stack? Que.8
  • 24. How do you print duplicate characters from a string? Que.1
  • 25. How do you check if two strings are anagrams of each other? Que.2
  • 26. How do you print the first non- repeated character from a string? Que.3
  • 27. How can a given string be reversed using recursion? Que.4
  • 28. How do you check if a string contains only digits? Que.5
  • 29. How are duplicate characters found in a string? Que.6
  • 30. How do you count a number of vowels and consonants in a given string? Que.7
  • 31. How do you count the occurrence of a given character in a string? Que.8
  • 32. How do you find all permutations of a string? Que.9
  • 33. How do you reverse words in a given sentence without using any library method? Que.10
  • 34. How do you check if two strings are a rotation of each other? Que.11
  • 35. How do you check if a given string is a palindrome? Que.12
  • 36. Other Programming Concept Related Interview Questions
  • 37. How is a binary search tree implemented? Que.1
  • 38. How do you perform preorder traversal in a given binary tree? Que.2
  • 39. How do you traverse a given binary tree in preorder without recursion? Que.3
  • 40. How do you perform an inorder traversal in a given binary tree? Que.4
  • 41. How do you print all nodes of a given binary tree using inorder traversal without recursion? Que.5
  • 42. How do you implement a postorder traversal algorithm? Que.6
  • 43. How do you traverse a binary tree in postorder traversal without recursion? Que.7
  • 44. How are all leaves of a binary search tree printed? Que.8
  • 45. How do you count a number of leaf nodes in a given binary tree? Que.9
  • 46. How do you perform a binary search in a given array? Que.10
  • 48. How is a bubble sort algorithm implemented? Que.1
  • 49. How is an iterative quicksort algorithm implemented? Que.2
  • 50. How do you implement an insertion sort algorithm? Que.3
  • 51. How is a merge sort algorithm implemented? Que.4
  • 52. How do you implement a bucket sort algorithm? Que.5
  • 53. How do you implement a counting sort algorithm? Que.6
  • 54. How is a radix sort algorithm implemented? Que.7
  • 55. How do you swap two numbers without using the third variable? Que.8
  • 56. How do you check if two rectangles overlap with each other? Que.9
  • 57. How do you design a vending machine? Que.10
  • 58. Once you are prepared to answer these questions and their solutions, logon to MockRabbit app and check whether you can answer these questions confidently.