Medium level Intuition: Seems like a straight forward question (leaning to an easy level). Since in Python you can't alter the legth of the array, we are going to iterate the given array while tracking the duplicate numbers, the position to insert, and the compared number. My Solution: class Solution: def removeDuplicates(self, nums: List[int]) -> int: tmp = 0 idx = 1 dup = False for i, num in e..
전체 글
A place where I flush my cache.Medium Intuition: The problem might seem like a search problem at first because you are looking for a possible leap paths to the final index. But really, you just have to return the boolean value, so by thinking about maximum possible jumps, one can do this in linear time easily. Feels like some kind of greedy algorithm will work here. My solution: class Solution: def canJump(self, nums: List[in..
2년 동안 업데이트가 안 되고 있다가 관짝 문 열고 나온 하이브.. 보니까 마지막 3.1.3 버전에 비해 5천개가 넘는 커밋이 추가되었다. 아마 프로젝트 역사상 가장 큰 업데이트인거 같다. Hive download 릴리즈 노트 릴리즈 노트가 길어서 중요해보이는거만 요약: GeoSpatial support 추가 Iceberg 관련 기능 Major Compaction OPTIMIZE TABLE 명령어 지원 DML문들 COPY-ON-WRITE 지원 HMS Meta Summary 조회 기능 Expire snapshots by time range truncate partition 지원 버전 업그레이드 (Hadoop, Tez, Parquet, Protobuf, Iceberg, 등등) 위에 있는 것들 말고 자잘한 성..