SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
No more Blub for me, thank you, Vicar.
Matthew Brown wrote:Does that mean you don't like this week's set of assignments?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry wrote: I should find some time tonight to work on Q4....
Joe Harry wrote:A course on Data Structures and Algorithms would have come in handy for this course.
No more Blub for me, thank you, Vicar.
Matthew Brown wrote:I think the new version would be more efficient, but I haven't worked that out properly (or tested it).
chris webster wrote:
Joe Harry wrote: I should find some time tonight to work on Q4....
Recommend you follow their tip to check out the Scala List.exists() function.
Joe Harry wrote:A course on Data Structures and Algorithms would have come in handy for this course.
Yeah, and maybe a spare brain!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry wrote:Did you use the filter0 method for iterating the allTweets?
No more Blub for me, thank you, Vicar.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry wrote:
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Matthew Brown wrote:I'll have to check that later - don't have access to my code right now - but the obvious explanation is that there might be some tweets about Google and Apple. If so the union won't contain those Tweets twice.
Joe Harry wrote:Just wanted to know what values you guys get for the google and apple tweets after applying the exists method from the List?
Was it the same with you all?
Joe Harry wrote:
Matthew Brown wrote:I'll have to check that later - don't have access to my code right now - but the obvious explanation is that there might be some tweets about Google and Apple. If so the union won't contain those Tweets twice.
Isn't that the expected behavior of union? But do let me know the total elements resulting out of the union. If they differ, then I have some problems with my union implementation.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Wen Tong Lin wrote:Hi everyone. I was wondering if you guys have to implement union() first, because you have to use that in filter0? if not did you guys just use incl()?
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Wen Tong Lin wrote:Hi everyone. I was wondering if you guys have to implement union() first, because you have to use that in filter0? if not did you guys just use incl()?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Matthew Brown wrote:I reckon there are three ways of implementing filter(). One uses union(), but it's clear that's not expected because of the order we're implementing things in. My first attempt used tail and head, and that was accepted, but I don't think that was the intended approach because head/tail are given as a hint for the next question. There's a third way that just uses incl().
Joe Harry wrote:I had a fourth way that used both head / tail and incl.
Don't get me started about those stupid light bulbs. |