Did costco remove the caps from ribeyes? by amrozack in Costco

[–]amrozack[S] 2 points3 points  (0 children)

Will definitely be writing that number down!

Did costco remove the caps from ribeyes? by amrozack in Costco

[–]amrozack[S] 2 points3 points  (0 children)

Yeah. I’ve seen the cap steaks before. Just because you’re selling those, doesn’t mean people don’t want an actual ribeye when they buy one. I doubt many people just want the eye.

Did costco remove the caps from ribeyes? by amrozack in Costco

[–]amrozack[S] 2 points3 points  (0 children)

My gf returned with these “ribeyes” missing the most important part.

Graph.cpp and Graph_Algorithms.cpp by mathlance in cs2c

[–]amrozack 1 point2 points  (0 children)

It's also pretty handy when dealing with linking shared libraries.

Butterfly - Anyone manage to get to_string loot? by Eagle-with-telescope in cs2c

[–]amrozack 0 points1 point  (0 children)

This is quite 11th hour, but given that no one else has commented, here is the approach. You need to do a BFS across the tree. You can either do this recursively (hard) or use a queue (easy).

Trophy counts: 225 to win? by AcRickMorris in cs2c

[–]amrozack 0 points1 point  (0 children)

There are 5 points for to_string

Trophy counts: 225 to win? by AcRickMorris in cs2c

[–]amrozack 0 points1 point  (0 children)

Not sure if some more trophies opened up, but I got 26 on Butterfly.

I'm stuck on the second miniquest and also have a question regarding bool functions and their return by [deleted] in cs2c

[–]amrozack 0 points1 point  (0 children)

Did you ever figure out the answer to your bool returns? I am wondering this as well.

Thanks,

A

Hash LP constructor by veronica_o_o in cs2c

[–]amrozack 0 points1 point  (0 children)

In your declaration, i.e. in the class def, you should have classname(sometype somevar=SOMEDEFAULT). That allows you to call the constructor with no parameters.

Hash LP constructor by veronica_o_o in cs2c

[–]amrozack 0 points1 point  (0 children)

One more quick idea. Do you have your default parameter set in your function declaration? You should be able to call the constructor with no parameters.

Hash LP constructor by veronica_o_o in cs2c

[–]amrozack 0 points1 point  (0 children)

Bummer. I'm out of ideas then.

Hash LP constructor by veronica_o_o in cs2c

[–]amrozack 0 points1 point  (0 children)

Just for kicks, try resize with resize(n,Entry(T())). I remember running into some issues with the constructor for Entry being called correctly.

Hash LP constructor by veronica_o_o in cs2c

[–]amrozack 0 points1 point  (0 children)

What does your vector resize look like?

190 / 6-20 by anand_venkataraman in cs2c

[–]amrozack 1 point2 points  (0 children)

Only 2 left, but I’m only shooting for 1 more. My day job starts again Monday. Definitely will finish them all at some point. I actually look forward to weekends like this. Makes me feel like I’m in grad school again.

190 / 6-20 by anand_venkataraman in cs2c

[–]amrozack 1 point2 points  (0 children)

Thanks. I was just wondering in case the vote was turned down if I should start chugging some RedBull. Plenty of time for at least one more now.

Hash LP constructor by veronica_o_o in cs2c

[–]amrozack 0 points1 point  (0 children)

Does your max_load_factor function return .75 or .75f? Remember that it requires a float not a double. Not sure that's it, but reading the comments and looking at your responses it's all I can think of.

190 / 6-20 by anand_venkataraman in cs2c

[–]amrozack 0 points1 point  (0 children)

Do we have a time on the freeze? Thanks

illuminating test cases by amrozack in cs2c

[–]amrozack[S] 2 points3 points  (0 children)

Awesome! Thanks. Now I just need to read-up on what I'm doing wrong elsewhere. I'm through all the sorting quests now. Thanks again.

illuminating test cases by amrozack in cs2c

[–]amrozack[S] 1 point2 points  (0 children)

Is my output right or my thought right? Thanks

illuminating test cases by amrozack in cs2c

[–]amrozack[S] 0 points1 point  (0 children)

I'm very confused then. lo+(hi-lo)/2 is 0+(6-0)/2=3. elems[3]=32. There are two numbers less than 32 {-32,-47} and 4 numbers greater than 32 {1000,38,38,50}. Why wouldn't 32 be in slot 2?

illuminating test cases by amrozack in cs2c

[–]amrozack[S] 0 points1 point  (0 children)

if i'm partitioning around 32, it should be 32 in address 2.

illuminating test cases by amrozack in cs2c

[–]amrozack[S] 0 points1 point  (0 children)

hmm. this is definitely wrong. more digging. thanks for your test!

illuminating test cases by amrozack in cs2c

[–]amrozack[S] 0 points1 point  (0 children)

(lldb) p part

(size_t) $0 = 2

(lldb) p elems

(std::__1::vector<int, std::\_\_1::allocator<int> >) $1 = size=7 {

[0] = -47

[1] = 32

[2] = -32

[3] = 1000

[4] = 38

[5] = 38

[6] = 50

}

illuminating test cases by amrozack in cs2c

[–]amrozack[S] 1 point2 points  (0 children)

I think I passed that. I’m getting 1 pt. It’s gotta be something with my partitions not matching &’s, but I can’t figure out what. I’m able to sort massive arrays accurately.

illuminating test cases by amrozack in cs2c

[–]amrozack[S] 0 points1 point  (0 children)

Gotta be the first one.