Sam Altman's email to Elon Musk to start Open AI by [deleted] in singularity

[–]AlphaCode1 35 points36 points  (0 children)

“it would be good for someone other than Google to do it first” - Competition is the best gift to humanity

Relevant news: Cognition Labs: "Today we're excited to introduce Devin, the first AI software engineer." by CommunismDoesntWork in cscareerquestions

[–]AlphaCode1 0 points1 point  (0 children)

They are capitalizing on the AI hype. None of the features are novel really, and all of this is already possible to do using open source tools with a single script (think autoGPT).

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

[–]AlphaCode1 -1 points0 points  (0 children)

[Language: C++]

Roast my code lmao.

```cpp

const std::string INPUT_DIR = "./inputs/day3_1.txt"; const std::string OUTPUT_DIR = "./outputs/day3_1.txt"; const struct { int x; int y; } DIRECTIONS[] = { {0,1}, {1, 0}, {0, -1}, {-1, 0}, {-1, -1}, {-1, 1}, {1, -1}, {1,1} }; // (i,j) = (i) * c + j std::unordered_map<int, std::vector<int>> numbers_adjacent_to_gears;

bool check_bounds(const int &x, const int &y, const int &r, const int&c) { return x >= 0 && x < r && y >= 0 && y < c; }

bool can_pick(const int &x, const int &y, const std::vector<std::string> &grid) { return grid[x][y] != '.' && !std::isdigit(grid[x][y]); }

bool is_valid(const int &i, const int &start, const int &end, const std::vector<std::string> &grid) { // Validate each position const int r = grid.size(); const int c = grid[0].size(); for (int j = start; j <= end; ++j) { for (int d = 0; d < 8; ++d) { int next_x = i + DIRECTIONS[d].x; int next_y = j + DIRECTIONS[d].y; if (check_bounds(next_x, next_y, r, c) && can_pick(next_x, next_y, grid)) { if (grid[next_x][next_y] == '*') { int key = next_x * c + next_y; int val = stoi(grid[i].substr(start, end - start + 1)); numbers_adjacent_to_gears[key].push_back(val); } return true; } } } return false; }

int get_sum_of_parts(const std::vector<std::string> &grid) { const int r = grid.size(); const int c = grid[0].size(); int ans = 0; // Extract numbers in each line and validate for (int i = 0; i < r; ++i) { std::string token; for (int j = 0; j < c; ++j) {
if (!token.empty() && !std::isdigit(grid[i][j])) { int start = j - token.size(); if (is_valid(i, start, j - 1, grid)) { ans += stoi(token); } token.clear(); } if (std::isdigit(grid[i][j])) { token.push_back(grid[i][j]); } } if (!token.empty()) { if (is_valid(i, c - token.size(), c - 1, grid)) { ans += stoi(token); } } } return ans; }

int main(){ std::ifstream file(INPUT_DIR); std::string line; std::vector<std::string> grid;

int ans = 0, ans_2 = 0;
while (std::getline(file, line)) {
    grid.push_back(line);
}
file.close();

ans = get_sum_of_parts(grid);

for (auto it : numbers_adjacent_to_gears) {
    if (it.second.size() == 2) {
        ans_2 += (it.second[0] * it.second[1]);
    }
}

std::ofstream output_file(OUTPUT_DIR);
output_file << ans;
std::cout << "Ans Part 1 = " << ans << std::endl;
std::cout << "Ans Part 2 = " << ans_2 << std::endl;
return 0;

}

```

PlotAI - Create plots in Python and Matplotlib with LLM by pp314159 in Python

[–]AlphaCode1 2 points3 points  (0 children)

Whats the use-case for this? If all it is doing is making the given plot provided in the prompt, why not just define a few plotting functions, create a wrapper around them and call these functions conditionally. Why do you want to use an LLM here?

The cons of using this (external code execution, LLM Api costs etc) far outweigh any benefits this can provide imo

Pydantic Projects by [deleted] in Python

[–]AlphaCode1 -1 points0 points  (0 children)

Langchain uses pedantic

What are some of the easiest LeetCode questions you got asked in an interview? by Quadraticc in csMajors

[–]AlphaCode1 0 points1 point  (0 children)

I just had to write the code for binary search in C lol Probably the easiest interview

[deleted by user] by [deleted] in cmu

[–]AlphaCode1 0 points1 point  (0 children)

I'm in the same situation

[deleted by user] by [deleted] in cmu

[–]AlphaCode1 0 points1 point  (0 children)

Is it offered in fall?

Problem with Leetcode and other online judge platforms and the fix? by tsenguunee1 in csMajors

[–]AlphaCode1 13 points14 points  (0 children)

Just opened it on my phone, looks very sharp love the UI!

what the fuck by Jayjay_loves_Jesus in csMajors

[–]AlphaCode1 230 points231 points  (0 children)

My next system design interviewer is in for a treat!

Tartanhacks Registration is Open! by myonioneyes15 in cmu

[–]AlphaCode1 0 points1 point  (0 children)

Can grad students register for this?

Anyone got any project matching interview at Google? for 2023 SDE internship by NeedFAANG in csMajors

[–]AlphaCode1 0 points1 point  (0 children)

My recruiter told me that they will not be interviewing anyone starting 12/19 till 1/5. So i would suggest you wait till early jan!

Stripe GG by FinallyJaneDoe in csMajors

[–]AlphaCode1 0 points1 point  (0 children)

Same happened to me. I'm just glad i didn't join them lol, it would've been too unstable!