Skip to content
Snippets Groups Projects
Commit 0d8eaa2d authored by Surendhar CK's avatar Surendhar CK
Browse files

Add new file

parents
No related branches found
No related tags found
No related merge requests found
pseuocode
1)
dictionary dict1
count=0
for all elements in origItems
dict[origitems[i])=origprice[i]
for all elements in items
if dict[items[i]]!=prices[i]
increment count
return count
2)
list=[text[st:end+1] for st in range len(text) for end in range(st,len(text))
list contains all substrings of given string
for every suffix substring in prefixstr check
if that suffixstring in list
find longst substring and give index as index2
for every prefix substring in suffixstr check
if that prefixtring in list
find longst substring and give index as index1
resultant string is calculated using concat of substrings given by suffix and prefix
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment