Fish
https://app.codility.com/programmers/lessons/7-stacks_and_queues/fish/ Fish coding task - Learn to Code - Codility N voracious fish are moving along a river. Calculate how many fish are alive. app.codility.com 지난번에 풀었던 PassingCars(https://nyaaong.tistory.com/67) 문제와 유사하다. 다만 서로 만나는 물고기들의 크기를 비교하는 로직이 추가되었다. import java.util.*; class Solution { final int upstream = 0; final int downstream = 1; pu..
코딩테스트/codility
2023. 10. 4.