Skip to content
Snippets Groups Projects
Commit 44805355 authored by D Vengatesh's avatar D Vengatesh
Browse files

Upload New File

parent f982b63b
Branches master
No related tags found
No related merge requests found
-----------------------Pseudo code for question 1:---------------------------------
for i in items:
index0=index(i)
if i in origItems
index1=index(i)
if prices[index0]==origPrices[index1]
count++
return count
-----------Pseudo code for question 2:-----------------------------------------------
for i in prefixString
index0=index(i)
if i in text
index1 =index(i)
if text[index1]==prefixString[index0]
pcount++
repeat line 17 and 18 until test[index1]==prefixString[index0]
similarly calculate the suffix count
sum=pcount+suffixcount
return(text[0:sum])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment