[Stage 8] Matrix Elements Sum

After they became famous, the CodeBots all decided to move to a new building and live together. The building is represented by a rectangular matrix of rooms. Each cell in the matrix contains an integer that represents the price of the room. Some rooms are free (their cost is 0), but that’s probably because they are haunted, so all the bots are afraid of them. That is why any room that is free or is located anywhere below a free room in the same column is not considered suitable for the bots to live in.

More …

2018-01-28 웹 프로그래밍 스쿨 3주차 소감

이제 어느정도 적응이 되어간다. 클래스와 객체에 대한 개념이 어느정도 잡혀가고 웹 페이지가 어떻게 구성되었는지, 또 웹 크롤링 하는 방법도 손에 익어간다. 문제는 수업시간에 처음 설명을 들을 때 거의 이해를 못하고 넘어가는 것이 많다는 것이다. 질문을 하고싶어도 당최 이해가 안되니 뭘 모르는지도 모르겠다. 그래서 수업 녹화를 적극 활용하기로 했다. 수업 시간이 끝나고 자습실에 남아서 강의를 몇 번씩이나 돌려보면서 낯설음을 깨부수고 있다.

More …

[Stage 6] Make Array Consecutive 2

Ratiorg got statues of different sizes as a present from CodeMaster for his birthday, each statue having an non-negative integer size. Since he likes to make things perfect, he wants to arrange them from smallest to largest so that each statue will be bigger than the previous one exactly by 1. He may need some additional statues to be able to accomplish that. Help him figure out the minimum number of additional statues needed.

More …