From 73d3fd5338c47fe8f1e3667a56872c08f00971f7 Mon Sep 17 00:00:00 2001 From: Velaga Abijith <cb.en.u4cse16260@cb.students.amrita.edu> Date: Wed, 6 Mar 2019 13:19:33 +0530 Subject: [PATCH] Upload New File --- cse16260_labp2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cse16260_labp2 diff --git a/cse16260_labp2 b/cse16260_labp2 new file mode 100644 index 0000000..3a42bf7 --- /dev/null +++ b/cse16260_labp2 @@ -0,0 +1,19 @@ +--------------------------------pseudo code for question 1 ------------------------------------- +1)for i range(0,len(origitems)) +2)for j in range(0,len(items)) +3)if(origprices[i]==prices[j]) +4)diff=origprice-price +5)if diff !=0 then increment count +6)print count +. + +--------------------------------pseudo code for question 2 --------------------------------------- + +1)for i in range(0,len(text)) +2)for j in range(0,len(preffixString)) +3)if text[i] == preffixString[j] +4) then check for the remaining characters how many are equal and increment count +5)store 5the characters in string1 +6) same as the above for suffixstring +7)add both trhe values and append the both strings +8)print the appended string -- GitLab