Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CSE16257
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Surendhar CK
CSE16257
Commits
0d8eaa2d
Commit
0d8eaa2d
authored
6 years ago
by
Surendhar CK
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parents
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cb.en.u4cse16257_p2_
+42
-0
42 additions, 0 deletions
cb.en.u4cse16257_p2_
with
42 additions
and
0 deletions
cb.en.u4cse16257_p2_
0 → 100644
+
42
−
0
View file @
0d8eaa2d
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment