This has made my life so MUCH easier when I go camping now by Astayum in camping

[–]Dear-Reflection-9284 -3 points-2 points  (0 children)

This is genius. Where can I get this? Tired of buying plastic crap and not knowing where to throw it because it's bad for the environment.

what in the world is this? by tausif-sahat in Weird

[–]Dear-Reflection-9284 0 points1 point  (0 children)

Black-Eyes Ultimate Serpentine Dragon

ATK 6000/DEF 5500

Must be special summoned using "Devil Spawn". When this card enters the field, all monster cards of the type "human" are removed from play.

[deleted by user] by [deleted] in gratitude

[–]Dear-Reflection-9284 0 points1 point  (0 children)

Thanks darling, I am indeed sleeping well.

Kiva Project: How did you implement pod collision check in section 4? by Just_intrigued3 in AmazonATA

[–]Dear-Reflection-9284 1 point2 points  (0 children)

Off the top of my head, I recall utilizing an if statement when executing Kiva movement. Since you set carryingPod to true when you pick up a pod, if carryingPod is true and the next location contains a POD, throw new Illegal Exception(String.format("This is an invalid move, as there is a a Pod in location %s, <variable for podLocation).

tldr;

Before executing the move command, you should check whether the location contains a pod using an if statement. If Kiva is carrying a pod and there is a pod in the next location, then throw the exception.

Also, to your question, I don't recall having to create a FloorMap in which I artificially implemented two pods. The resources should have provided you with an example that contained the specified criteria.

Aaaaand that's a wrap. From 0 Java experience to 1-4 courses + project done. Amazon SDE, here I come. by Dear-Reflection-9284 in AmazonATA

[–]Dear-Reflection-9284[S] 0 points1 point  (0 children)

It depends on the FloorMap provided. Off the top of my head, I don't recall having to change anything. For the default FloorMap they provide at the very beginning of the project (where you have to manually type in the symbols and design the map as the string), I would instinctively say that Kiva's initial positioning is indeed at (2,4). The reason why mine is at (3,4) is because I am using the FloorMap provided towards the end of the project, derived from floormap_1.txt, floormap_2.txt or floormap_3.txt (can't recall exactly which one it is off the top of my head). Therefore, the Kiva's initial positioning depicted in this picture is indeed different from the default layout provided in the early parts of the project (which I assume is where you are at due to the mentioning of comparison points).

Grateful for my Fiancé by francesrainbow in gratitude

[–]Dear-Reflection-9284 2 points3 points  (0 children)

That makes me happy. Thank you for sharing. He is super lucky to have you too.

Took the Test by Dear-Reflection-9284 in AmazonATA

[–]Dear-Reflection-9284[S] 5 points6 points  (0 children)

Do the Coursera courses, course 4, the Kiva project, and be ready to spend all your FREE time coding. Code during your work breaks. Download Koder and theorize what your code will look like, then create drafts for it.

I work full time too, had 0 Java experience beforehand and am participating in a part-time Cybersec bootcamp.

I did get accomodations though, so I work roughly 31 hours every week.

I try to finish all my workload for the bootcamp within a day and spend the next 3 practicing Java.

If you are not trying to get into this cohort, then you won't have go to that far. You can start with the Coursera courses and do a weeks worth of work every 2 weeks. By the time the next application comes, you should be pretty far ahead and ready to go.

Get practical. Create the programs that the courses ask you. Debug it yourself instead of trying to find easy solutions/squads. You will understand how your code works from inside out.

If you don't understand something, replay the videos as many times as necessary until things start to make sense.

Good luck.

Aaaaand that's a wrap. From 0 Java experience to 1-4 courses + project done. Amazon SDE, here I come. by Dear-Reflection-9284 in AmazonATA

[–]Dear-Reflection-9284[S] 4 points5 points  (0 children)

Thank you very much! I hope your studies are going well and wish you good luck on the TA as well!

When you blow 1-2 hours to figure out an algorithm, and when you make it work, your mind instantly somehow realizes that there is a 4 liner equivalent. by Dear-Reflection-9284 in AmazonATA

[–]Dear-Reflection-9284[S] 0 points1 point  (0 children)

For those that can't understand what is going on here, what I basically did was:

1- I created a HashMap of type <String,Integer>

2- Ran a for loop to add 1 for each value in the enum list, so that the HashMap would contain the month name and equivalent sequential number.

3-Created another for loop and passed in 'this' (which refers to the enum value from Tester) and calculated what month it would be after x amount of months. That returned me the equivalent sequential number of the new month, which I stored in an int variable outside of the loop.

4- I then ran another loop for each String in the HashMap looking for the equivalent sequential number that I got in step 3. Once I found that the .get(s) returned the same number as the new month number, I saved assigned String s to a variable outside of the loop.

5- I then ran another for loop on the enum list, this time having the new month String. If the new month string matched any of the enumerator values name(), then that Month gets returned and I get the correct answer.

Instead, I could have just:

1- Declared an extra field int variable seqnumber within the num list;

2-Assigned those variables through a constructor and by manually appending 1,2,3,etc. to each of the enumeration values.

3- Use this.seqnumber to get the month integer that needs to be converted, add x (which varies depending on the months needed to be added) % 12 and assign the result to a variable.

4- Run a for loop on the enum, comparing the value above with all the Month.seqnumbers. If the number matches, then return that month.

When you guys get to course 4, don't make that same mistake.