🔍 Link0u Search Engine

과학/테크/IT트렌드

2025.06.16 21:08

Can you Solve this Google Interview Question? | Twisters #google #coding #leetcode #interview #dp

  • Coded InPajamas 오래 전 2025.06.16 21:08 인기
  • 1,159
    3
Starting my DSA journey as a Professional Developer | @CodedInPajamas This is an easy category leetcode question asked in ...
  • 공유링크 복사

    댓글목록

    profile_image
    @funnymemes3268  오래 전

    But won’t the wolf eat the farmer??????

    2025-06-17 13:16

    profile_image
    @ropekaty  오래 전

    Wolf aur Cabbage ko saath mein kyun nehi le jaa sakte hain ? Wolf cabbage nehi khayega based on the problem statement here.
    Also if it does, then farmer can carry the cabbage back with him and take the goat along with him .
    Yes goat will want to eat the cabbage, but it's the farmer's job to keep that away from its mouth.

    Aur uske baad bhi wo khaa leta hain toh goat ko leke wolf ke pass chhor do..
    Usse kya hoga Wolf ke andar Goat aur Goat ke andar Cabbage rahenge
    Like Wrapper classes.

    2025-06-17 20:15

    profile_image
    @jagannathsamad…  오래 전

    This question also came in our ai exam too.

    2025-06-18 13:28