dku-study / algorithm Goto Github PK
View Code? Open in Web Editor NEW단국대학교 알고리즘 스터디
Home Page: https://docs.google.com/spreadsheets/d/12s4bTdAsZyamQS3wMsElsHTh8mrnX0LAkCrL7QmNvlo/edit?usp=sharing
단국대학교 알고리즘 스터디
Home Page: https://docs.google.com/spreadsheets/d/12s4bTdAsZyamQS3wMsElsHTh8mrnX0LAkCrL7QmNvlo/edit?usp=sharing
마지막 2개에 timeout 이 뜹니다.
function solution2 (X, A) {
let time = -1;
let location = 0;
if (A.length < X) return -1;
while (location < X) {
const newLocation = A.indexOf(++location);
if (newLocation === -1) return -1;
else if (newLocation > time) {
time = newLocation;
}
}
return time;
}
나는 이렇게 풀었어
문제 해결해서 알려줘!!!!
(이렇게 물어보면 안됩니다 ㅎㅎ)
내 코드에 대한 설명 . 어려운 점 구체적으로 !!
1차면담을 진행하지 못한점 죄송합니다 ㅠ
대신 전체 면담을 진행했으면 합니다~!!
전체 면담 내용은, 스터디 운영 방안과
질문, 건의사항, 스터디 진행 후기 각자 하고싶은 이야기
입니다.
방학 추가 스터디
이후 필요하다면 2:1 면담을 할 수 있습니다. 어떤 어려움이 있어 스터디 활동이 저조하다면 그 문제 해결에 도움이 되었으면 해서 진행합니다.
면담전 아래 내용을 작성해서 "박은영" 저에게 카카오톡 갠톡을 보내주시구요~
스터디 개설 후 활동에 대한 평가
자신이 푼 알고리즘 난이도에 대한 평가
코드 리뷰 에 대한 평가
목표로 하는 회사
갖추고 싶은 기술스택
스터디에 바라는점 및 만족도
진로에 대한 고민 상담
알고리즘 외에 하고 싶은 스터디
현재 하고있는 공부
지금까지 한 공부
본 면담에서는 스터디 운영 방안에 대한 논의를 할 것입니다.
현재는 준일님께서 수고롭게 혼자 리뷰를 해주시고 있습니다.
그래서 제가 제안드리는 방법으로는요
문제를 제일 처음 푼 분은 준일님이 리뷰를 해주시고요
이후에 2빠 부터는
function solution2(N, A) {
const aLen = A.length;
// 우선 결과를 담을 배열의 요소를 0으로 초기화 시킵니다.
const arr = new Array(N).fill(0); // O(n)
for (let i = 0; i < aLen; i++) { // O(n)
const value = A[i];
// 값이 N을 초과할 경우 배열의 max값으로 배열의 값을 모두 초기화 합니다.
if (value > N) arr.fill(Math.max(...arr)); // O(n)
// 그렇지 않을 경우 요소의 index의 값을 증가시킵니다.
else arr[value-1]++;
}
return arr;
}
마지막 두개에 타임 에러가 뜹니다.
https://app.codility.com/programmers/lessons/4-counting_elements/max_counters/
안녕하세요. 단국대학교 소프트웨어학과 김태홍이라고 합니다.
우연히 단국대 개발자 스터디를 알게 되었어요.
좋은 취지로 잘 운영되고있는 모임이라고 생각해서 합류하고 싶습니다.
마지막 모집이 7월인 것으로 확인되는데, 다음 지원 기간은 언제로 예정되어있는지 궁금합니다!
/**
* 평균이 최소인 Slice의 시작 위치
* @param A
*/
function solution(A) {
const len = A.length
const sum = (a, b) => a + b
let min = Infinity, i = 0, resolve = -1
do {
const arr1 = A.slice(i, i + 2), avg1 = arr1.reduce(sum) / arr1.length
const arr2 = A.slice(i, i + 3), avg2 = arr2.reduce(sum) / arr2.length
let tmp = Math.min(avg1, avg2, min)
if (tmp !== min) ([ resolve, min ] = [ i, tmp ])
i += 1
} while (i < len - 1)
return resolve
}
const testCase = require("./test.json")
testCase.forEach(({ input, output }) => console.log(input.toString(), '\n', solution(...input), output))
@JunilHwang 형이 작성한 코드인데
if (tmp !== min) ([ resolve, min ] = [ i, tmp ])
이 부분이 어떤 코드? 인지 모르겠어서 올립니다.
Currently, a 404 error occurs in the links you wrote in your README.md. Check it
확인 후 다시 PR 올려볼것 이번엔 Merge 하지말고
구글 폼에 신청서를 작성하시면 여기에 댓글을 남겨주세요
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.