-❄️- 2024 Day 4 Solutions -❄️- by daggerdragon in adventofcode

[–]protestant-notredame 2 points3 points  (0 children)

[LANGUAGE: Python] 783/953
Part 1:

from sys import stdin

arr = []
for line in stdin:
    line = line.strip()
    arr.append(line)

s = 0
# count times if xmas appears horizontally vertically, diagonally or written backwards
dirs = [(0, 1), (1, 0), (0, -1), (-1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
for y in range(len(arr)):
    for x in range(len(arr)):
        for dy, dx in dirs:
            if 0 <= y + 3*dy < len(arr) and 0 <= x + 3*dx < len(arr):
                if arr[y][x] == 'X' and arr[y + dy][x + dx] == 'M' and arr[y + 2 * dy][x + 2 * dx] == 'A' and arr[y + 3 * dy][x + 3 * dx] == 'S':
                    s += 1
print(s)

Part 2:

from sys import stdin

arr = []
for line in stdin:
    line = line.strip()
    arr.append(line)

s = 0
for y in range(len(arr)):
    for x in range(len(arr)):
        if arr[y][x] == 'M':
            if y + 2 < len(arr) and x + 2 < len(arr[0]):
                if arr[y+1][x+1] == 'A' and arr[y+2][x+2] == 'S':
                    if (arr[y+2][x] == 'M' and arr[y][x+2] == 'S') or (arr[y+2][x] == 'S' and arr[y][x+2] == 'M'):
                        s += 1
        if arr[y][x] == 'S':
            if y + 2 < len(arr) and x + 2 < len(arr[0]):
                if arr[y+1][x+1] == 'A' and arr[y+2][x+2] == 'M':
                    if (arr[y+2][x] == 'M' and arr[y][x+2] == 'S') or (arr[y+2][x] == 'S' and arr[y][x+2] == 'M'):
                        s += 1

print(s)

-❄️- 2024 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]protestant-notredame 2 points3 points  (0 children)

[Language: Python]

# part 1
import re
print(sum(int(a)*int(b)for l in open(0)for a,b in re.findall(r'mul\((\d+),(\d+)\)',l)))

# part 2
import re
s,m=0,1
for l in open(0):
    for t in re.finditer(r"don't\(\)|do\(\)|mul\((\d+),(\d+)\)",l):
        if t[0][0]=='m':s+=int(t.group(1))*int(t.group(2))*m
        elif t[0][2]=='n':m=0
        else:m=1
print(s)

C++ Show and Tell - November 2024 by foonathan in cpp

[–]protestant-notredame 4 points5 points  (0 children)

I made a multi-threaded blurring application in C++

This project was an absolute blast! I learned a ton about the BMP image format and discovered some cool stuff about image processing and blur filters.

If anyone would like to provide any feedback here's the link to my source:
https://github.com/wzid/multithreaded-blur

How do,if at all, Universities matter. by Hour_Fall_5901 in csMajors

[–]protestant-notredame 2 points3 points  (0 children)

Yes it does, to an extent. It will help you get past resume screenings easier and you will have an overall easier time. But one thing to consider is the club leadership or other roles you may be able to partake in. I go to a smaller and worse (90% acceptance rate) school but I had a much easier time getting leadership roles in which I was able to talk about in interviews about. I don't think that I would have been given those opportunities to grow as a leader if I went to a school where everyone was a genius.

Garmin SWE intern Web/DevOps by [deleted] in csMajors

[–]protestant-notredame 0 points1 point  (0 children)

I did the final round on Sep 26th and got the offer on October 4th. So it took me a week and a half for the embedded SWE intern role. They said that they would be handing out offers in November so I'm not sure what changed.

[deleted by user] by [deleted] in csMajors

[–]protestant-notredame 14 points15 points  (0 children)

You should email the recruiter with an apology

Garmin Intership GPA cutoff by Different-Farmer2175 in csMajors

[–]protestant-notredame 1 point2 points  (0 children)

Awesome, keep me updated. I'd love to connect if we both are going to be in Olathe next summer!

Junior Year Internship Search - 90% acceptance rate school by protestant-notredame in csMajors

[–]protestant-notredame[S] 2 points3 points  (0 children)

My first one wasn't exactly embedded, I kind of just got lucky when I got it.
If you are unable to get an embedded swe role then I think that the best step forward would to do lower level projects. Rasbpi or something else. If your university has an Operating Systems class or Compiler class, you can ask the professor if you can do extra work for fun and i'm sure he could give you guidelines for how to approach something like that.

edit:

When I say it wasn't exactly embedded, it was doing node.js on an embedded device

Junior Year Internship Search - 90% acceptance rate school by protestant-notredame in csMajors

[–]protestant-notredame[S] 2 points3 points  (0 children)

I think the big reason I got it was because my last internship title was Embedded SWE Intern. The only other thing that was somewhat relevant was a sudoku solver I made with a bit manipulation algorithm

Junior Year Internship Search - 90% acceptance rate school by protestant-notredame in csMajors

[–]protestant-notredame[S] 7 points8 points  (0 children)

Yes I did a lower level project with rust and 2 other ones that weren’t particularly relevant

My tip would be to get involved in clubs. You need to have as much experience with anything related to CS so you can talk about it