목록Computer (246)
Machineboy空
문제요약chromatic scale: 반음계diatonic scale: 온음계기본음이 주어지면 음계를 출력하는 함수를 완성하라!https://exercism.org/tracks/csharp/exercises/scale-generator Scale Generator in C# on ExercismCan you solve Scale Generator in C#? Improve your C# skills with support from our world-class team of mentors.exercism.org 난이도Medium풀이 포인트문제 해석bb와 Bb를 동일하게char first = char.ToUpper(tonic[0]);string upperTonic = first + tonic.Substri..

문제요약1~ 31까지의 10진수를 입력하면, 2진수로 바꾼 뒤 숫자에 맞는 동작을 수행하라.https://exercism.org/tracks/csharp/exercises/secret-handshake Secret Handshake in C# on ExercismCan you solve Secret Handshake in C#? Improve your C# skills with support from our world-class team of mentors.exercism.org난이도Easy풀이 포인트2진수 변환// 내가 구현한 2진법 변환string binary = "";int num;while(num > 0){ binary = (num % 2) + binary; num /= 2;}// ..

Linked List를 간략하게 설명한다면?a list of nodes that are linked together.singly linked listdoubly linked listLinear data structures : 선형 데이터 구조sequence(순서와 규칙)가 있다hopscotch처럼 끝에 다다르기 위해서는 순차적으로 모든 노드를 지나쳐야 한다.LinearNon-LinearArray, linked listhashes, trees, graphsMemory Management같은 선형 데이터인 Array와 linked List의 차이가 뭘까? 7개의 문자를 저장하는 Array가 만들어지면, 연속된 7byte짜리의 메모리 칸을 마련해두어야 한다.하지만, linked list는 연속된 single ..

1) 1 - Bit Register /** * 1-bit register: * If load is asserted, the register's value is set to in; * Otherwise, the register maintains its current value: * if (load(t)) out(t+1) = in(t), else out(t+1) = out(t) */ CHIP Bit { IN in, load; OUT out; PARTS: Mux(a=gayout,b=in,sel=load,out=a); DFF(in=a,out=out,out=gayout);}2) 16- bit Register/** * 16-bit register: * If load is asserted,..
문제요약로봇 이름을 무작위로 생성하라규칙 : 대문자 2개 + 숫자 3개로 이루어지며 중복되지 않는다.예 : RX837, BC811https://exercism.org/tracks/csharp/exercises/robot-name Robot Name in C# on ExercismCan you solve Robot Name in C#? Improve your C# skills with support from our world-class team of mentors.exercism.org난이도Easy풀이 포인트랜덤한 대문자 뽑기 : 아스키 코드(int형)에서 char 형 변환중복 체크 : Hashset 혹은 Listget,set 용법REVIEW 아스키 코드, 예를 들어 96을 A로 만드는 방법에서 헤맸다..

main memory unit = RAM(Random Access Memory)을 만들어 볼 것 computer's processing chips: based on combinational logiccomputer's memory logic : clock-based sequential logicKey ConceptCombinational vs sequential logicclocks and cyclesflip-flopsregistersRAM unitscounters3.1 Sequential Logic : 시간 단위가 있는 순차 논리 회로라는 개념how to computers do one thing after another지금까지는 input 넣으면 바로 output이 출력되고, 실행시간에 관한 생각을 안..
문제요약Anagram 인지 확인하라! 난이도Medium풀이 포인트아이디어 1: 구성된 요소가 같다면 지워가는 방식아이디어 2: 정렬해서 같은지 판단하는 방식https://machineboy0.tistory.com/269 C++ 기초 문법 다지기 예제 모음4 - 함수프로그램의 일부 로직을 함수를 사용하여 별도로 추상화하면 코드가 더 읽기 쉬워지고 유지보수도 용이하다. 함수는 복잡한 연산을 추상화시켜 줄 뿐만 아니라 재사용을 가능케 하는 요소이기machineboy0.tistory.comREVIEW 와우 분명 저번에 상쾌한 풀이를 공부했던 터였는데애너그램? 오 익숙한데 하면서 또 노가다 풀이로 구현했다. 머리 좋게 정렬해서 같은지를 살피면 되는.. 문제다.다만 소문자와 대문자를 같게 판단해야 하는 부분이 ..
문제요약Beer Song을 출력하라! https://www.youtube.com/watch?v=6AfrLXrfOGQ미국의 구전 노래같은 건 가봄https://exercism.org/tracks/csharp/exercises/beer-song Beer Song in C# on ExercismCan you solve Beer Song in C#? Improve your C# skills with support from our world-class team of mentors.exercism.org난이도Easy풀이 포인트개행예외 케이스 처리: 1병 일 때 단수 표현, bottle과 itstartBottles == 1 ? "bottle" : "bottles"REVIEW 간단한 반복문 문제라 생각해서 단순히 풀..