Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency
Q
?
A -
Informatica
search
Login
Remember
Register
New Activity
Questions
Unanswered
Tags
Categories
Users
Course
News
FAQs
Do you need help?
Ask a Question
Notice Board
NEXT EXAMS
Current grades at 28/3/22
Exams and Covid-19
BUG BOUNTY / IMPROVEMENTS
Code coverage
DOWNVOTES
Course info
Course rules
Zoom links
Unit 1, log of the lectures
Unit 1, class exercises
Unit 1, video recordings
Unit 2, log of the lectures
Unit 2, additional exercises
Unit 2, video recordings
Teaching material
Getting started
Teaching assistants
Booking tutoring
Programming exercises
Exams
Test
Grades
Attachments
HW6 recovery
link
HW8 recovery
link
HW8 required
link
HW7 optional
link
HW6 required
check
link
HW4 recovery
link
HW5 optional
link
HW2 recovery
link
HW4 required
check
link
HW3 optional
link
HW2 required
check
link
HW1 optional
link
205
questions
400
answers
420
comments
322
users
No related questions found
Most popular tags
homework
exam
grades
homework2
test
recovery
secret-tests
tests
homework8
hw2
announcements
error
hw
homework4
lectures
hw1
bug
exam-12-9-22
optional
q2a
hw4
required
solutions
exam-18-2-22
exam-1-4-22
#homework
hw8
hw6rec
hw4req
libraries
vm
anaconda
reserved-exam
homework6
programming
hw8req
hw5opt
help
hw2req
2nd-chance
exercises
spyder
exam-28-1-22
homework5
exam-20-6-22
peer-assessment
esonero
exploit
hw8rec
hw6req
Categories
Announcements
(13)
Intro. to Programming and Lab AA22-23 (Latina)
(14)
Programming AY20-21
(123)
Programming AY21-22
(205)
News
(80)
Course info
(15)
Homework
(73)
HW1 optional
(9)
HW2
(23)
HW3 optional
(2)
HW4
(14)
HW5 optional
(2)
HW6
(8)
HW7 optional
(0)
HW8
(15)
Programming in Python
(30)
Exam exercises
(7)
Programming AY22-23
(296)
Programming AY23-24
(181)
Fondamenti di programmazione AA18-19
(1.2k)
Fondamenti di Programmazione AA19-20
(436)
Fondamenti di Programmazione AA20-21
(708)
Fondamenti di programmazione AA21-22
(366)
Fondamenti di programmazione AA22-23
(564)
Fondamenti di programmazione AA23-24
(346)
Other
(26)
Anni precedenti
(784)
Architetture degli elaboratori AA20-21
(3)
BUG BOUNTY / IMPROVEMENTS
(4)
HW2: Lexicographic order in the case of a further tie
f
fernandoalonzi_
(270 points)
1
2
3
asked
Nov 2, 2021
in
HW2
by
fernandoalonzi_
(
270
points)
recategorized
Nov 7, 2021
by
andrea.sterbini
When comparing two strings in lexicographic order, should we also consider ' '? Because ord(' ') comes before the others and this means that if a string starts with ' ' compared to another that doesn't, it wins the comparison.
320
views
closed
32
2
Answers
Best answer
Ganni02
(4920 points)
1
2
15
answered
Nov 2, 2021
by
Ganni02
(
4.9k
points)
selected
Nov 2, 2021
by
andrea.sterbini
As part of the initial process, you would need to remove all white spaces, hence the ' ' should be ignored.
12
comment
leonardo_13
(1540 points)
6
15
22
commented
Nov 8, 2021
by
leonardo_13
(
1.5k
points)
Great answer.
Please
log in
or
register
to add a comment.
s
saad rahman
(560 points)
0
0
3
answered
Nov 2, 2021
by
saad rahman
(
560
points)
"The number of non-space characters is, however, equal
for each sequence". I think it implies that we have to consider non-space characters as mentioned in the assignment.
8
comment
a
angelaob
(1190 points)
2
4
7
commented
Nov 2, 2021
by
angelaob
(
1.2k
points)
I think it means that after removing possible white spaces and tabs, the number of characters becomes the same for every string
Please
log in
or
register
to add a comment.