SlideShare a Scribd company logo
Machine Coding…
After getting the question (5-10
mins)
 Read the problem statement carefully.
 Try to clearly understand all the requirements.
 Do not assume anything that is not mentioned in
the problem statement.
 If you want to make a specific assumption, discuss it
with the interviewer at this stage.
 Ask as many clarifying questions as you can think
of so as to make the requirements clear and remove
any room for ambiguity or misinterpretation.
Getting to the solution (10-15 mins)
 Spend ~10 minutes thinking about the design of
your solution. This is important.
 You do not want to start coding before a proper
design.
 While designing think about how you can make it
extensible to accommodate the optional
requirements or any common extension that you
can think of.
 Following good design principles and patterns
will generally help.
 Estimate how much time will it take you to
code with all the requirements.
 Prioritize which ones to do so as to at least solve
the most critical ones.
 Apart from the design, estimate some time for
creating the main method or API/CLI interface
as mentioned in the problem statement or as
clarified with the interviewer.
 Also, estimate some time for testing and making
changes to have the solution working.
 If your current solution will take a lot of time to
code, try to think of a simpler design that is good
enough and will take less time to code.
 This is one of the biggest trade-offs in a machine
coding round (and in general, software
development).
 Do not prioritize an optional requirement over a
mandatory requirement.
 If you focus more on extensibility and future
requirements and are unable to complete a
mandatory requirement, it's a red flag.
 Optional: If possible, draw a UML diagram of your
design for clarity.
Coding (60-75 mins)
 If you've designed the solution and are
comfortable in coding, this step should be fairly
easy.
 Just make sure to code fast so as to complete as
many requirements as possible.
 In the end, you need to have a working code. Be
ready with good sample examples to
demonstrate your solution.
 Gracefully handle exceptions and other corner
cases. You do not want your code to fail during
the demonstration.
 Write readable code with proper names. Use
comments, if possible.
 You are writing the code for your interviewer to
read and understand.
 Use a powerful IDE that you are comfortable
with. Choose one where you can generate most
of the boilerplate code to save time.
Demonstration
 While demonstrating, make sure to give a high-
level overview of your solution.
 Do not explain each and every line of the code.
 Your code should be modular and self-explanatory.
 Tell the interviewer about all the requirements that
you've completed and if your solution is extensible
for other requirements.
 After running your solution on sample input, it may
be a good idea to ask the interviewer if they want
you to test with any other input.
#include<stdio.h>
int main (){
char a[25];
int open = 0, close = 0, count = 0;
printf ("Enter the Expression:");
scanf ("%s", &a);
for (count = 0; a[count] != '0'; +
+count); {
printf ("%d n", count);
}
for (int i = 0; i < count; i++) {
if (a[i] == '{') {
open++;
}
else if (a[i] == '}') { close+
+;
}
else {
continue;
}
}
if (open == close) {
printf ("Stable Equation");
}
else {
printf ("Unstable Equation");
}
return 0;
}

More Related Content

Similar to Machine Coding , Machine Language and AI (20)

Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Development
Samnang Chhun
 
Slides chapter 5
Slides chapter 5Slides chapter 5
Slides chapter 5
Priyanka Shetty
 
SE chapter 5
SE chapter 5SE chapter 5
SE chapter 5
Hardik Patel
 
Documenting Code - Patterns and Anti-patterns - NLPW 2016
Documenting Code - Patterns and Anti-patterns - NLPW 2016Documenting Code - Patterns and Anti-patterns - NLPW 2016
Documenting Code - Patterns and Anti-patterns - NLPW 2016
Søren Lund
 
Software Development Essential Skills
Software Development Essential SkillsSoftware Development Essential Skills
Software Development Essential Skills
John Choi
 
CSCI 180 Project Grading  Your project is graded based .docx
CSCI 180 Project Grading   Your project is graded based .docxCSCI 180 Project Grading   Your project is graded based .docx
CSCI 180 Project Grading  Your project is graded based .docx
faithxdunce63732
 
Best Practices in Software Development
Best Practices in Software DevelopmentBest Practices in Software Development
Best Practices in Software Development
André Pitombeira
 
Documenting code yapceu2016
Documenting code yapceu2016Documenting code yapceu2016
Documenting code yapceu2016
Søren Lund
 
When to Code / Config / Config + Code in Salesforce - Nikunj Doshi
When to Code / Config / Config + Code in Salesforce - Nikunj DoshiWhen to Code / Config / Config + Code in Salesforce - Nikunj Doshi
When to Code / Config / Config + Code in Salesforce - Nikunj Doshi
Sakthivel Madesh
 
AD - Developer communication and Technology
AD - Developer communication and TechnologyAD - Developer communication and Technology
AD - Developer communication and Technology
Enplore AB
 
Put to the Test
Put to the TestPut to the Test
Put to the Test
Kevlin Henney
 
What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?
Syed Hassan Raza
 
Tdd
TddTdd
Tdd
nitinkansal2003
 
Architecting Solutions and Systems – Randy’s Secrets to Success
Architecting Solutions and Systems – Randy’s Secrets to SuccessArchitecting Solutions and Systems – Randy’s Secrets to Success
Architecting Solutions and Systems – Randy’s Secrets to Success
Randy Williams
 
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
 
Hacking through your UX Design Interview
Hacking through your UX Design InterviewHacking through your UX Design Interview
Hacking through your UX Design Interview
Chibueze Etoniru
 
Developers Nepal Meetup #4 Report
Developers Nepal Meetup #4 ReportDevelopers Nepal Meetup #4 Report
Developers Nepal Meetup #4 Report
Punit Jajodia
 
Developer week: An Engineer’s Essential Tool in Agile: Design Thinking
Developer week: An Engineer’s Essential Tool in Agile:  Design ThinkingDeveloper week: An Engineer’s Essential Tool in Agile:  Design Thinking
Developer week: An Engineer’s Essential Tool in Agile: Design Thinking
Aliza Carpio
 
Code review best practice
Code review best practiceCode review best practice
Code review best practice
Oren Digmi
 
Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Development
Samnang Chhun
 
Documenting Code - Patterns and Anti-patterns - NLPW 2016
Documenting Code - Patterns and Anti-patterns - NLPW 2016Documenting Code - Patterns and Anti-patterns - NLPW 2016
Documenting Code - Patterns and Anti-patterns - NLPW 2016
Søren Lund
 
Software Development Essential Skills
Software Development Essential SkillsSoftware Development Essential Skills
Software Development Essential Skills
John Choi
 
CSCI 180 Project Grading  Your project is graded based .docx
CSCI 180 Project Grading   Your project is graded based .docxCSCI 180 Project Grading   Your project is graded based .docx
CSCI 180 Project Grading  Your project is graded based .docx
faithxdunce63732
 
Best Practices in Software Development
Best Practices in Software DevelopmentBest Practices in Software Development
Best Practices in Software Development
André Pitombeira
 
Documenting code yapceu2016
Documenting code yapceu2016Documenting code yapceu2016
Documenting code yapceu2016
Søren Lund
 
When to Code / Config / Config + Code in Salesforce - Nikunj Doshi
When to Code / Config / Config + Code in Salesforce - Nikunj DoshiWhen to Code / Config / Config + Code in Salesforce - Nikunj Doshi
When to Code / Config / Config + Code in Salesforce - Nikunj Doshi
Sakthivel Madesh
 
AD - Developer communication and Technology
AD - Developer communication and TechnologyAD - Developer communication and Technology
AD - Developer communication and Technology
Enplore AB
 
What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?
Syed Hassan Raza
 
Architecting Solutions and Systems – Randy’s Secrets to Success
Architecting Solutions and Systems – Randy’s Secrets to SuccessArchitecting Solutions and Systems – Randy’s Secrets to Success
Architecting Solutions and Systems – Randy’s Secrets to Success
Randy Williams
 
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
 
Hacking through your UX Design Interview
Hacking through your UX Design InterviewHacking through your UX Design Interview
Hacking through your UX Design Interview
Chibueze Etoniru
 
Developers Nepal Meetup #4 Report
Developers Nepal Meetup #4 ReportDevelopers Nepal Meetup #4 Report
Developers Nepal Meetup #4 Report
Punit Jajodia
 
Developer week: An Engineer’s Essential Tool in Agile: Design Thinking
Developer week: An Engineer’s Essential Tool in Agile:  Design ThinkingDeveloper week: An Engineer’s Essential Tool in Agile:  Design Thinking
Developer week: An Engineer’s Essential Tool in Agile: Design Thinking
Aliza Carpio
 
Code review best practice
Code review best practiceCode review best practice
Code review best practice
Oren Digmi
 

More from Jeyarajs7 (15)

Python Using Face Detection Coding Session
Python Using Face Detection Coding SessionPython Using Face Detection Coding Session
Python Using Face Detection Coding Session
Jeyarajs7
 
Python Using Face Detection Coding Session
Python Using Face Detection Coding SessionPython Using Face Detection Coding Session
Python Using Face Detection Coding Session
Jeyarajs7
 
Full Stack_HTML- Hypertext Markup Language
Full Stack_HTML- Hypertext Markup LanguageFull Stack_HTML- Hypertext Markup Language
Full Stack_HTML- Hypertext Markup Language
Jeyarajs7
 
Full Stack_Reac web Development and Application
Full Stack_Reac web Development and ApplicationFull Stack_Reac web Development and Application
Full Stack_Reac web Development and Application
Jeyarajs7
 
AI PPT 2023 for College Students and Arts
AI PPT 2023 for College Students and ArtsAI PPT 2023 for College Students and Arts
AI PPT 2023 for College Students and Arts
Jeyarajs7
 
AI PPT 2023 for College Students and Arts
AI PPT 2023 for College Students and ArtsAI PPT 2023 for College Students and Arts
AI PPT 2023 for College Students and Arts
Jeyarajs7
 
Technology Readiness Level in Computer Sci
Technology Readiness Level in Computer SciTechnology Readiness Level in Computer Sci
Technology Readiness Level in Computer Sci
Jeyarajs7
 
Technology Readiness Level in Computer Sci
Technology Readiness Level in Computer SciTechnology Readiness Level in Computer Sci
Technology Readiness Level in Computer Sci
Jeyarajs7
 
DIGITAL MARKETING UPDATE VERSION NEW ONE
DIGITAL MARKETING UPDATE VERSION NEW ONEDIGITAL MARKETING UPDATE VERSION NEW ONE
DIGITAL MARKETING UPDATE VERSION NEW ONE
Jeyarajs7
 
IT Related file Hardware and Software SPec
IT Related file Hardware and Software SPecIT Related file Hardware and Software SPec
IT Related file Hardware and Software SPec
Jeyarajs7
 
Cream & Pastel Palette Healthcare Center Characters By Slidesgos.pptx
Cream & Pastel Palette Healthcare Center Characters By Slidesgos.pptxCream & Pastel Palette Healthcare Center Characters By Slidesgos.pptx
Cream & Pastel Palette Healthcare Center Characters By Slidesgos.pptx
Jeyarajs7
 
Math Subject for Elementary - 5th Grade_ Fractions I _ by Slidesgo.pptx
Math Subject for Elementary - 5th Grade_ Fractions I _ by Slidesgo.pptxMath Subject for Elementary - 5th Grade_ Fractions I _ by Slidesgo.pptx
Math Subject for Elementary - 5th Grade_ Fractions I _ by Slidesgo.pptx
Jeyarajs7
 
About Mental Health - Mrs.Sivakakthi.pptx
About Mental Health - Mrs.Sivakakthi.pptxAbout Mental Health - Mrs.Sivakakthi.pptx
About Mental Health - Mrs.Sivakakthi.pptx
Jeyarajs7
 
Basics of Fullstack like Web Development
Basics of Fullstack like Web DevelopmentBasics of Fullstack like Web Development
Basics of Fullstack like Web Development
Jeyarajs7
 
C Programming with oops Concept and Pointer
C Programming with oops Concept and PointerC Programming with oops Concept and Pointer
C Programming with oops Concept and Pointer
Jeyarajs7
 
Python Using Face Detection Coding Session
Python Using Face Detection Coding SessionPython Using Face Detection Coding Session
Python Using Face Detection Coding Session
Jeyarajs7
 
Python Using Face Detection Coding Session
Python Using Face Detection Coding SessionPython Using Face Detection Coding Session
Python Using Face Detection Coding Session
Jeyarajs7
 
Full Stack_HTML- Hypertext Markup Language
Full Stack_HTML- Hypertext Markup LanguageFull Stack_HTML- Hypertext Markup Language
Full Stack_HTML- Hypertext Markup Language
Jeyarajs7
 
Full Stack_Reac web Development and Application
Full Stack_Reac web Development and ApplicationFull Stack_Reac web Development and Application
Full Stack_Reac web Development and Application
Jeyarajs7
 
AI PPT 2023 for College Students and Arts
AI PPT 2023 for College Students and ArtsAI PPT 2023 for College Students and Arts
AI PPT 2023 for College Students and Arts
Jeyarajs7
 
AI PPT 2023 for College Students and Arts
AI PPT 2023 for College Students and ArtsAI PPT 2023 for College Students and Arts
AI PPT 2023 for College Students and Arts
Jeyarajs7
 
Technology Readiness Level in Computer Sci
Technology Readiness Level in Computer SciTechnology Readiness Level in Computer Sci
Technology Readiness Level in Computer Sci
Jeyarajs7
 
Technology Readiness Level in Computer Sci
Technology Readiness Level in Computer SciTechnology Readiness Level in Computer Sci
Technology Readiness Level in Computer Sci
Jeyarajs7
 
DIGITAL MARKETING UPDATE VERSION NEW ONE
DIGITAL MARKETING UPDATE VERSION NEW ONEDIGITAL MARKETING UPDATE VERSION NEW ONE
DIGITAL MARKETING UPDATE VERSION NEW ONE
Jeyarajs7
 
IT Related file Hardware and Software SPec
IT Related file Hardware and Software SPecIT Related file Hardware and Software SPec
IT Related file Hardware and Software SPec
Jeyarajs7
 
Cream & Pastel Palette Healthcare Center Characters By Slidesgos.pptx
Cream & Pastel Palette Healthcare Center Characters By Slidesgos.pptxCream & Pastel Palette Healthcare Center Characters By Slidesgos.pptx
Cream & Pastel Palette Healthcare Center Characters By Slidesgos.pptx
Jeyarajs7
 
Math Subject for Elementary - 5th Grade_ Fractions I _ by Slidesgo.pptx
Math Subject for Elementary - 5th Grade_ Fractions I _ by Slidesgo.pptxMath Subject for Elementary - 5th Grade_ Fractions I _ by Slidesgo.pptx
Math Subject for Elementary - 5th Grade_ Fractions I _ by Slidesgo.pptx
Jeyarajs7
 
About Mental Health - Mrs.Sivakakthi.pptx
About Mental Health - Mrs.Sivakakthi.pptxAbout Mental Health - Mrs.Sivakakthi.pptx
About Mental Health - Mrs.Sivakakthi.pptx
Jeyarajs7
 
Basics of Fullstack like Web Development
Basics of Fullstack like Web DevelopmentBasics of Fullstack like Web Development
Basics of Fullstack like Web Development
Jeyarajs7
 
C Programming with oops Concept and Pointer
C Programming with oops Concept and PointerC Programming with oops Concept and Pointer
C Programming with oops Concept and Pointer
Jeyarajs7
 
Ad

Recently uploaded (20)

May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
gerogepatton
 
Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)
kevig
 
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Mohamed905031
 
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghjfHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
yadavshivank2006
 
Artificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowyArtificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowy
dominikamizerska1
 
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
BeHappy728244
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 
International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)
jaresjournal868
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journeyRigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptxFINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
Impurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptxImpurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptx
dhanashree78
 
Class-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdfClass-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdf
takisvlastos
 
22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 _ML_Unit 3 Notes & Question bank22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 _ML_Unit 3 Notes & Question bank
Guru Nanak Technical Institutions
 
Presentación Tomografía Axial Computarizada
Presentación Tomografía Axial ComputarizadaPresentación Tomografía Axial Computarizada
Presentación Tomografía Axial Computarizada
Juliana Ovalle Jiménez
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
Transformimet e sinjaleve numerike duke perdorur transformimet
Transformimet  e sinjaleve numerike duke perdorur transformimetTransformimet  e sinjaleve numerike duke perdorur transformimet
Transformimet e sinjaleve numerike duke perdorur transformimet
IndritEnesi1
 
MODULE 6 - 1 VAE - Variational Autoencoder
MODULE 6 - 1 VAE - Variational AutoencoderMODULE 6 - 1 VAE - Variational Autoencoder
MODULE 6 - 1 VAE - Variational Autoencoder
DivyaMeenaS
 
ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...
ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...
ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...
Journal of Soft Computing in Civil Engineering
 
Strength of materials (Thermal stress and strain relationships)
Strength of materials (Thermal stress and strain relationships)Strength of materials (Thermal stress and strain relationships)
Strength of materials (Thermal stress and strain relationships)
pelumiadigun2006
 
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
gerogepatton
 
Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)
kevig
 
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Mohamed905031
 
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghjfHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
yadavshivank2006
 
Artificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowyArtificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowy
dominikamizerska1
 
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
BeHappy728244
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 
International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)
jaresjournal868
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journeyRigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptxFINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
Impurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptxImpurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptx
dhanashree78
 
Class-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdfClass-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdf
takisvlastos
 
Presentación Tomografía Axial Computarizada
Presentación Tomografía Axial ComputarizadaPresentación Tomografía Axial Computarizada
Presentación Tomografía Axial Computarizada
Juliana Ovalle Jiménez
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
Transformimet e sinjaleve numerike duke perdorur transformimet
Transformimet  e sinjaleve numerike duke perdorur transformimetTransformimet  e sinjaleve numerike duke perdorur transformimet
Transformimet e sinjaleve numerike duke perdorur transformimet
IndritEnesi1
 
MODULE 6 - 1 VAE - Variational Autoencoder
MODULE 6 - 1 VAE - Variational AutoencoderMODULE 6 - 1 VAE - Variational Autoencoder
MODULE 6 - 1 VAE - Variational Autoencoder
DivyaMeenaS
 
Strength of materials (Thermal stress and strain relationships)
Strength of materials (Thermal stress and strain relationships)Strength of materials (Thermal stress and strain relationships)
Strength of materials (Thermal stress and strain relationships)
pelumiadigun2006
 
Ad

Machine Coding , Machine Language and AI

  • 2. After getting the question (5-10 mins)  Read the problem statement carefully.  Try to clearly understand all the requirements.  Do not assume anything that is not mentioned in the problem statement.  If you want to make a specific assumption, discuss it with the interviewer at this stage.  Ask as many clarifying questions as you can think of so as to make the requirements clear and remove any room for ambiguity or misinterpretation.
  • 3. Getting to the solution (10-15 mins)  Spend ~10 minutes thinking about the design of your solution. This is important.  You do not want to start coding before a proper design.  While designing think about how you can make it extensible to accommodate the optional requirements or any common extension that you can think of.  Following good design principles and patterns will generally help.
  • 4.  Estimate how much time will it take you to code with all the requirements.  Prioritize which ones to do so as to at least solve the most critical ones.  Apart from the design, estimate some time for creating the main method or API/CLI interface as mentioned in the problem statement or as clarified with the interviewer.  Also, estimate some time for testing and making changes to have the solution working.
  • 5.  If your current solution will take a lot of time to code, try to think of a simpler design that is good enough and will take less time to code.  This is one of the biggest trade-offs in a machine coding round (and in general, software development).  Do not prioritize an optional requirement over a mandatory requirement.  If you focus more on extensibility and future requirements and are unable to complete a mandatory requirement, it's a red flag.  Optional: If possible, draw a UML diagram of your design for clarity.
  • 6. Coding (60-75 mins)  If you've designed the solution and are comfortable in coding, this step should be fairly easy.  Just make sure to code fast so as to complete as many requirements as possible.  In the end, you need to have a working code. Be ready with good sample examples to demonstrate your solution.
  • 7.  Gracefully handle exceptions and other corner cases. You do not want your code to fail during the demonstration.  Write readable code with proper names. Use comments, if possible.  You are writing the code for your interviewer to read and understand.  Use a powerful IDE that you are comfortable with. Choose one where you can generate most of the boilerplate code to save time.
  • 8. Demonstration  While demonstrating, make sure to give a high- level overview of your solution.  Do not explain each and every line of the code.  Your code should be modular and self-explanatory.  Tell the interviewer about all the requirements that you've completed and if your solution is extensible for other requirements.  After running your solution on sample input, it may be a good idea to ask the interviewer if they want you to test with any other input.
  • 9. #include<stdio.h> int main (){ char a[25]; int open = 0, close = 0, count = 0; printf ("Enter the Expression:"); scanf ("%s", &a); for (count = 0; a[count] != '0'; + +count); { printf ("%d n", count); } for (int i = 0; i < count; i++) { if (a[i] == '{') { open++; } else if (a[i] == '}') { close+ +; } else { continue; } } if (open == close) { printf ("Stable Equation"); } else { printf ("Unstable Equation"); } return 0; }