KRONOS_麒點科技有限公司

Senior/Staff Data Engineer

視訊面試 · 2023.08.04 分享
2023.07
面試時間
4 /5
面試評價
未錄取
面試結果
普通
面試難度
面試過程
第一關HR先phon...
面試問題
1. Max even sum of a subsequence of length K Given an array of integers A and an integer K, find a subsequence of length K that maximize the sum, which must be even. Return the sum, or -1 if no even sum can be made. Examples: A = [4,2,6,7,8], K = 3, the algorithm should return 18 as 4 + 6 + 8 = 18 A = [5, 5, 2, 4, 3], K = 3, the algorithm should return 14 as 5 + 5 + 4 = 14 感覺是一套貪心題
感覺是一套貪心題
0
分享
面試趣排行榜
最新職缺
廣告
  • 內外場服務員
    帷幕火鍋店
    200
    /日薪
  • 【中山區遼寧街】門市正職/免經驗/月休8-13天
    鑫運彩券行
    30 - 36k
    /月薪
  • 食品技師
    寬瑭食品餐飲有限公司
    40 - 50k
    /月薪
  • 文承嘉工程行
    文承嘉工程行
    1.9k
    /日薪