SlideShare a Scribd company logo
1 of 1
Download to read offline
Write C source code for this problem:
You are given a grid of letters, followed by some words. the words can occur anywhere in the
grid on a row or a column, forward or backward. However, there are no diagonal words. Write
an algorithm to find if the given word occurs in the grid on a row or a column, forward or
backward.
Input: The first line of input consists of two integers- grid_row and grid_col, representing the
number of rows (N) and the number of columns (M) of the letter grid, respectively. The next M
lines consist of N space-separated characters representing the letters of the grid. The next line
consists of an integer- word_size, representing the number of words to be searched from the
given grid (k). The last line consists of K space-separated strings representing the words to
search for in the grid.
Output: Print K space-separated strings consisting of "Yes" if the word is present in the grid or
"No" if the word is not present in the grid.

More Related Content

Similar to Write C source code for this problemYou are given a grid of lette.pdf

Basic concepts. Systems of equations
Basic concepts. Systems of equationsBasic concepts. Systems of equations
Basic concepts. Systems of equationsjorgeduardooo
 
C programming session 04
C programming session 04C programming session 04
C programming session 04Dushmanta Nath
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C ProgrammingKamal Acharya
 
SATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHSSATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHScscpconf
 
Chart and graphs in R programming language
Chart and graphs in R programming language Chart and graphs in R programming language
Chart and graphs in R programming language CHANDAN KUMAR
 
Python (regular expression)
Python (regular expression)Python (regular expression)
Python (regular expression)Chirag Shetty
 
Matrices
MatricesMatrices
Matricesdaferro
 
Module 4- Arrays and Strings
Module 4- Arrays and StringsModule 4- Arrays and Strings
Module 4- Arrays and Stringsnikshaikh786
 
String in c in erode SENGUNTHAR engineering .pptx
String in c in erode SENGUNTHAR engineering .pptxString in c in erode SENGUNTHAR engineering .pptx
String in c in erode SENGUNTHAR engineering .pptxmani123123r
 
regular-expression.pdf
regular-expression.pdfregular-expression.pdf
regular-expression.pdfDarellMuchoko
 
4tocontest
4tocontest4tocontest
4tocontestberthin
 
STRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdfSTRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdfSowmyaJyothi3
 
An ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
An ElGamal Encryption Scheme of Adjacency Matrix and Finite MachinesAn ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
An ElGamal Encryption Scheme of Adjacency Matrix and Finite MachinesComputer Science Journals
 
1. Introduction.pptx
1. Introduction.pptx1. Introduction.pptx
1. Introduction.pptxSungaleliYuen
 

Similar to Write C source code for this problemYou are given a grid of lette.pdf (20)

Basic concepts. Systems of equations
Basic concepts. Systems of equationsBasic concepts. Systems of equations
Basic concepts. Systems of equations
 
Plot function in R
Plot function in RPlot function in R
Plot function in R
 
C programming session 04
C programming session 04C programming session 04
C programming session 04
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
 
SATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHSSATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHS
 
Chart and graphs in R programming language
Chart and graphs in R programming language Chart and graphs in R programming language
Chart and graphs in R programming language
 
Python (regular expression)
Python (regular expression)Python (regular expression)
Python (regular expression)
 
C Programming Unit-3
C Programming Unit-3C Programming Unit-3
C Programming Unit-3
 
Matrices
MatricesMatrices
Matrices
 
Module 4- Arrays and Strings
Module 4- Arrays and StringsModule 4- Arrays and Strings
Module 4- Arrays and Strings
 
String in c in erode SENGUNTHAR engineering .pptx
String in c in erode SENGUNTHAR engineering .pptxString in c in erode SENGUNTHAR engineering .pptx
String in c in erode SENGUNTHAR engineering .pptx
 
regular-expression.pdf
regular-expression.pdfregular-expression.pdf
regular-expression.pdf
 
4tocontest
4tocontest4tocontest
4tocontest
 
Array and string
Array and stringArray and string
Array and string
 
Presentation.pptx
Presentation.pptxPresentation.pptx
Presentation.pptx
 
STRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdfSTRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdf
 
An ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
An ElGamal Encryption Scheme of Adjacency Matrix and Finite MachinesAn ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
An ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
 
Nn
NnNn
Nn
 
1. Introduction.pptx
1. Introduction.pptx1. Introduction.pptx
1. Introduction.pptx
 
14 ruby strings
14 ruby strings14 ruby strings
14 ruby strings
 

More from krishahuja1992

Write a small paraghraphFollow on to the Motion Envision an ecolo.pdf
Write a small paraghraphFollow on to the Motion Envision an ecolo.pdfWrite a small paraghraphFollow on to the Motion Envision an ecolo.pdf
Write a small paraghraphFollow on to the Motion Envision an ecolo.pdfkrishahuja1992
 
Write a program to create a binary tree andDisplay Write a program.pdf
Write a program to create a binary tree andDisplay Write a program.pdfWrite a program to create a binary tree andDisplay Write a program.pdf
Write a program to create a binary tree andDisplay Write a program.pdfkrishahuja1992
 
Write as much as you can please in the Mauritian Context. Will give .pdf
Write as much as you can please in the Mauritian Context. Will give .pdfWrite as much as you can please in the Mauritian Context. Will give .pdf
Write as much as you can please in the Mauritian Context. Will give .pdfkrishahuja1992
 
write a PseudocodeCreate a class called Sentence that contains the.pdf
write a PseudocodeCreate a class called Sentence that contains the.pdfwrite a PseudocodeCreate a class called Sentence that contains the.pdf
write a PseudocodeCreate a class called Sentence that contains the.pdfkrishahuja1992
 
Write a Python code to get a digital image and reduces its noise in .pdf
Write a Python code to get a digital image and reduces its noise in .pdfWrite a Python code to get a digital image and reduces its noise in .pdf
Write a Python code to get a digital image and reduces its noise in .pdfkrishahuja1992
 
Write a program in Java that displays a GUI fast food menu with chec.pdf
Write a program in Java that displays a GUI fast food menu with chec.pdfWrite a program in Java that displays a GUI fast food menu with chec.pdf
Write a program in Java that displays a GUI fast food menu with chec.pdfkrishahuja1992
 
Why my ocr is not performing for multi page pdf in javaimport java.pdf
Why my ocr is not performing for multi page pdf in javaimport java.pdfWhy my ocr is not performing for multi page pdf in javaimport java.pdf
Why my ocr is not performing for multi page pdf in javaimport java.pdfkrishahuja1992
 
Why was the bank seized by federal regulatorsWhich of the thr.pdf
Why was the bank seized by federal regulatorsWhich of the thr.pdfWhy was the bank seized by federal regulatorsWhich of the thr.pdf
Why was the bank seized by federal regulatorsWhich of the thr.pdfkrishahuja1992
 
Why is it important for real estate developers to work with various .pdf
Why is it important for real estate developers to work with various .pdfWhy is it important for real estate developers to work with various .pdf
Why is it important for real estate developers to work with various .pdfkrishahuja1992
 
Which statement is NOT trueFailing to reject the null hypothesis .pdf
Which statement is NOT trueFailing to reject the null hypothesis .pdfWhich statement is NOT trueFailing to reject the null hypothesis .pdf
Which statement is NOT trueFailing to reject the null hypothesis .pdfkrishahuja1992
 
will upvote if answer is good 5) Simplify the following Boolean func.pdf
will upvote if answer is good 5) Simplify the following Boolean func.pdfwill upvote if answer is good 5) Simplify the following Boolean func.pdf
will upvote if answer is good 5) Simplify the following Boolean func.pdfkrishahuja1992
 
Whichofthe folowing si NOT aprinciple of basic financial managemen.pdf
Whichofthe folowing si NOT aprinciple of basic financial managemen.pdfWhichofthe folowing si NOT aprinciple of basic financial managemen.pdf
Whichofthe folowing si NOT aprinciple of basic financial managemen.pdfkrishahuja1992
 
Willa, reci�n graduada de la universidad con poca experiencia relaci.pdf
Willa, reci�n graduada de la universidad con poca experiencia relaci.pdfWilla, reci�n graduada de la universidad con poca experiencia relaci.pdf
Willa, reci�n graduada de la universidad con poca experiencia relaci.pdfkrishahuja1992
 
Write a 12 page essay that explains why import and export documents.pdf
Write a 12 page essay that explains why import and export documents.pdfWrite a 12 page essay that explains why import and export documents.pdf
Write a 12 page essay that explains why import and export documents.pdfkrishahuja1992
 
Why the system says cannot find symbol of Calendar though I said imp.pdf
Why the system says cannot find symbol of Calendar though I said imp.pdfWhy the system says cannot find symbol of Calendar though I said imp.pdf
Why the system says cannot find symbol of Calendar though I said imp.pdfkrishahuja1992
 
Why do some populations growWhat factors help to determine the ra.pdf
Why do some populations growWhat factors help to determine the ra.pdfWhy do some populations growWhat factors help to determine the ra.pdf
Why do some populations growWhat factors help to determine the ra.pdfkrishahuja1992
 
Why are intravenous (IV) drug users at greater risk for skin abscess.pdf
Why are intravenous (IV) drug users at greater risk for skin abscess.pdfWhy are intravenous (IV) drug users at greater risk for skin abscess.pdf
Why are intravenous (IV) drug users at greater risk for skin abscess.pdfkrishahuja1992
 
Which statement about Hadoop is correcta) b) c).pdf
Which statement about Hadoop is correcta) b) c).pdfWhich statement about Hadoop is correcta) b) c).pdf
Which statement about Hadoop is correcta) b) c).pdfkrishahuja1992
 
With statistics, we have the data but we do not know the conditions..pdf
With statistics, we have the data but we do not know the conditions..pdfWith statistics, we have the data but we do not know the conditions..pdf
With statistics, we have the data but we do not know the conditions..pdfkrishahuja1992
 
You noted that organic foods are healthier and I found one study tha.pdf
You noted that organic foods are healthier and I found one study tha.pdfYou noted that organic foods are healthier and I found one study tha.pdf
You noted that organic foods are healthier and I found one study tha.pdfkrishahuja1992
 

More from krishahuja1992 (20)

Write a small paraghraphFollow on to the Motion Envision an ecolo.pdf
Write a small paraghraphFollow on to the Motion Envision an ecolo.pdfWrite a small paraghraphFollow on to the Motion Envision an ecolo.pdf
Write a small paraghraphFollow on to the Motion Envision an ecolo.pdf
 
Write a program to create a binary tree andDisplay Write a program.pdf
Write a program to create a binary tree andDisplay Write a program.pdfWrite a program to create a binary tree andDisplay Write a program.pdf
Write a program to create a binary tree andDisplay Write a program.pdf
 
Write as much as you can please in the Mauritian Context. Will give .pdf
Write as much as you can please in the Mauritian Context. Will give .pdfWrite as much as you can please in the Mauritian Context. Will give .pdf
Write as much as you can please in the Mauritian Context. Will give .pdf
 
write a PseudocodeCreate a class called Sentence that contains the.pdf
write a PseudocodeCreate a class called Sentence that contains the.pdfwrite a PseudocodeCreate a class called Sentence that contains the.pdf
write a PseudocodeCreate a class called Sentence that contains the.pdf
 
Write a Python code to get a digital image and reduces its noise in .pdf
Write a Python code to get a digital image and reduces its noise in .pdfWrite a Python code to get a digital image and reduces its noise in .pdf
Write a Python code to get a digital image and reduces its noise in .pdf
 
Write a program in Java that displays a GUI fast food menu with chec.pdf
Write a program in Java that displays a GUI fast food menu with chec.pdfWrite a program in Java that displays a GUI fast food menu with chec.pdf
Write a program in Java that displays a GUI fast food menu with chec.pdf
 
Why my ocr is not performing for multi page pdf in javaimport java.pdf
Why my ocr is not performing for multi page pdf in javaimport java.pdfWhy my ocr is not performing for multi page pdf in javaimport java.pdf
Why my ocr is not performing for multi page pdf in javaimport java.pdf
 
Why was the bank seized by federal regulatorsWhich of the thr.pdf
Why was the bank seized by federal regulatorsWhich of the thr.pdfWhy was the bank seized by federal regulatorsWhich of the thr.pdf
Why was the bank seized by federal regulatorsWhich of the thr.pdf
 
Why is it important for real estate developers to work with various .pdf
Why is it important for real estate developers to work with various .pdfWhy is it important for real estate developers to work with various .pdf
Why is it important for real estate developers to work with various .pdf
 
Which statement is NOT trueFailing to reject the null hypothesis .pdf
Which statement is NOT trueFailing to reject the null hypothesis .pdfWhich statement is NOT trueFailing to reject the null hypothesis .pdf
Which statement is NOT trueFailing to reject the null hypothesis .pdf
 
will upvote if answer is good 5) Simplify the following Boolean func.pdf
will upvote if answer is good 5) Simplify the following Boolean func.pdfwill upvote if answer is good 5) Simplify the following Boolean func.pdf
will upvote if answer is good 5) Simplify the following Boolean func.pdf
 
Whichofthe folowing si NOT aprinciple of basic financial managemen.pdf
Whichofthe folowing si NOT aprinciple of basic financial managemen.pdfWhichofthe folowing si NOT aprinciple of basic financial managemen.pdf
Whichofthe folowing si NOT aprinciple of basic financial managemen.pdf
 
Willa, reci�n graduada de la universidad con poca experiencia relaci.pdf
Willa, reci�n graduada de la universidad con poca experiencia relaci.pdfWilla, reci�n graduada de la universidad con poca experiencia relaci.pdf
Willa, reci�n graduada de la universidad con poca experiencia relaci.pdf
 
Write a 12 page essay that explains why import and export documents.pdf
Write a 12 page essay that explains why import and export documents.pdfWrite a 12 page essay that explains why import and export documents.pdf
Write a 12 page essay that explains why import and export documents.pdf
 
Why the system says cannot find symbol of Calendar though I said imp.pdf
Why the system says cannot find symbol of Calendar though I said imp.pdfWhy the system says cannot find symbol of Calendar though I said imp.pdf
Why the system says cannot find symbol of Calendar though I said imp.pdf
 
Why do some populations growWhat factors help to determine the ra.pdf
Why do some populations growWhat factors help to determine the ra.pdfWhy do some populations growWhat factors help to determine the ra.pdf
Why do some populations growWhat factors help to determine the ra.pdf
 
Why are intravenous (IV) drug users at greater risk for skin abscess.pdf
Why are intravenous (IV) drug users at greater risk for skin abscess.pdfWhy are intravenous (IV) drug users at greater risk for skin abscess.pdf
Why are intravenous (IV) drug users at greater risk for skin abscess.pdf
 
Which statement about Hadoop is correcta) b) c).pdf
Which statement about Hadoop is correcta) b) c).pdfWhich statement about Hadoop is correcta) b) c).pdf
Which statement about Hadoop is correcta) b) c).pdf
 
With statistics, we have the data but we do not know the conditions..pdf
With statistics, we have the data but we do not know the conditions..pdfWith statistics, we have the data but we do not know the conditions..pdf
With statistics, we have the data but we do not know the conditions..pdf
 
You noted that organic foods are healthier and I found one study tha.pdf
You noted that organic foods are healthier and I found one study tha.pdfYou noted that organic foods are healthier and I found one study tha.pdf
You noted that organic foods are healthier and I found one study tha.pdf
 

Recently uploaded

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 

Recently uploaded (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

Write C source code for this problemYou are given a grid of lette.pdf

  • 1. Write C source code for this problem: You are given a grid of letters, followed by some words. the words can occur anywhere in the grid on a row or a column, forward or backward. However, there are no diagonal words. Write an algorithm to find if the given word occurs in the grid on a row or a column, forward or backward. Input: The first line of input consists of two integers- grid_row and grid_col, representing the number of rows (N) and the number of columns (M) of the letter grid, respectively. The next M lines consist of N space-separated characters representing the letters of the grid. The next line consists of an integer- word_size, representing the number of words to be searched from the given grid (k). The last line consists of K space-separated strings representing the words to search for in the grid. Output: Print K space-separated strings consisting of "Yes" if the word is present in the grid or "No" if the word is not present in the grid.