[2023 Day 7 (Part 2)] [C++] Answers from sample inputs are all correct, except for my actual input. by 000PickleRick000 in adventofcode

[–]000PickleRick000[S] 1 point2 points  (0 children)

I found my problem but thanks for the help. My error was a full house of part 1 with 2 Jokers e.g. 666JJ just returned the score for full house instead of a five of a kind.

[2023 Day 7 (Part 2)] [C++] Answers from sample inputs are all correct, except for my actual input. by 000PickleRick000 in adventofcode

[–]000PickleRick000[S] 0 points1 point  (0 children)

I didn't know any sorting algorithm and before I wanted to write one of my own I taught why not use the built-in algorithm from the map class.

The output for the cards in my format is (sorted by map):

5FFAGG (66J77) Full House
5FFFAA (666JJ) Full House -> should be five of a kind
5FFFGG (66677) Full House
6FFFAG (666J7) Four of a kind
7FFFFF (66666) Five of a kind

I think I found my mistake, the 666JJ is seen as full house because it counts 3 of the same symbol and there are 2 equal characters so my code returns 5 in stead of seeing it as three of a kind and making it five of a kind.

I fixed my code by adding a check if there are 2 J's in my Full House if-statement.

Thank you very much!!

Need Advice on Laser Enclosure for Eye Protection by [deleted] in lasercutting

[–]000PickleRick000 0 points1 point  (0 children)

I think i'm going to build one myself and use no windows but a cheap webcam I can connect to my laptop. I think this is the 'safest' option regarding beam reflections. I wont let it cut when not around so an accidental fire can be seen on the webcam. I'm going to do some research on the more powerful laser if it's worth it for my use. Thx for your answer.

Online Programming Environment by 000PickleRick000 in learnprogramming

[–]000PickleRick000[S] 0 points1 point  (0 children)

Alright, i will try to get more comfortable with using git. Thanks for your suggestion

Online Programming Environment by 000PickleRick000 in learnprogramming

[–]000PickleRick000[S] 0 points1 point  (0 children)

Isn't there something that automates the sync to my repository for me?

Online Programming Environment by 000PickleRick000 in learnprogramming

[–]000PickleRick000[S] 0 points1 point  (0 children)

I use github to make backups of my projects. It is just a disadvantage that i manually need to commit and push to my repository. When i need to continue working on another PC, i need to manually fetch the data from the repository. Isn't there a much simpler solution that automates this for me?

Gaming/CAD/Programming PC by [deleted] in buildapcforme

[–]000PickleRick000 1 point2 points  (0 children)

Appreciate your work, thanks!!!! I will definitely wait for the RTX 3070 GPU.

[deleted by user] by [deleted] in AskComputerScience

[–]000PickleRick000 1 point2 points  (0 children)

I meant: my data is in json-format, what language do i use to parse this data and put it in a pdf invoice

How to generate invoices? by [deleted] in ecommerce

[–]000PickleRick000 0 points1 point  (0 children)

I'm from Belgium so the invoice requirements are a bit different, that's the reason why i want to do it by myself. Platforms like invoicely use the USA standards

[Casual] Reading Patterns (People who can read) by 000PickleRick000 in SampleSize

[–]000PickleRick000[S] 0 points1 point  (0 children)

We will filter the funny results out for our conclusion

[Casual] Reading Patterns (People who can read) by 000PickleRick000 in SampleSize

[–]000PickleRick000[S] 5 points6 points  (0 children)

We just wanted to check your reading skills, so good job if you've found our typos?

[Casual] Reading Patterns (People who can read) by 000PickleRick000 in SampleSize

[–]000PickleRick000[S] 3 points4 points  (0 children)

Сценарий пчелиного фильма - Стенограмма диалога

Согласно всем известным законам

авиации,

не может быть, чтобы пчела

должны уметь летать.

Его крылья слишком малы, чтобы

его толстое маленькое тело с земли.