프로그래머스 방문 길이 c++
·
Programmers/LV2
https://www.geeksforgeeks.org/unordered_set-in-cpp-stl/ Unordered Sets in C++ Standard Template Library - GeeksforGeeksA Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.www.geeksforgeeks.org 중복을 허용하지 않고, 순서가 없으며, 속도가 O(1) ~ O(n), 해시 테이블 ..
프로그래머스 행렬의 곱셈 c++
·
Programmers/LV2
정방이 아닌 행렬은 3x5 5x3 이런식으로 되어 있어야 곱셈이 이뤄질 수 있음https://ko.wikipedia.org/wiki/%ED%96%89%EB%A0%AC_%EA%B3%B1%EC%85%88 행렬 곱셈 - 위키백과, 우리 모두의 백과사전위키백과, 우리 모두의 백과사전. 행렬 곱셈을 위해선 첫째 행렬의 열 갯수와 둘째 행렬의 행 갯수가 동일해야한다. 곱셈의 결과 새롭게 만들어진 행렬은 첫째 행렬의 행 갯수와 둘째 행렬의 열ko.wikipedia.org첫째 행렬의 행 갯수와 둘째 행렬의 열 갯수가 동일해야 한다.#include #include using namespace std;vector> solution(vector> arr1, vector> arr2) { vector> answer; ..