알고리즘/릿코드

문제링크: https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/?envType=daily-question&envId=2024-03-03 Maximum Odd Binary Number - LeetCode Can you solve this real interview question? Maximum Odd Binary Number - You are given a binary string s that contains at least one '1'. You have to rearrange the bits in such a way that the resulting binary number is the maximum odd binary..
문제링크: https://leetcode.com/problems/maximum-odd-binary-number/description/?envType=daily-question&envId=2024-03-01 Maximum Odd Binary Number - LeetCode Can you solve this real interview question? Maximum Odd Binary Number - You are given a binary string s that contains at least one '1'. You have to rearrange the bits in such a way that the resulting binary number is the maximum odd binary number..
Insuition Problem link: https://leetcode.com/problems/jump-game-iv/ After assessing the problem, I believe that applying the BFS algorithm would be an effective solution. One of the key advantages of this approach is that it allows for multiple paths to be created from each index. For example, if we start at index i, we can traverse to i-1, i+1, or any other index j that has the same value as ar..
파커초
'알고리즘/릿코드' 카테고리의 글 목록