LeetCode_Study_Plan/Algorithm
-
35. Search Insert Position javaLeetCode_Study_Plan/Algorithm 2022. 12. 20. 18:16
https://leetcode.com/problems/search-insert-position/?envType=study-plan&id=algorithm-i Search Insert Position - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com class Solution { public int searchInsert(int[] nums, int target) { int start = 0; int end = nums.length - 1; int ans = 0;..
-
278. First Bad Version javaLeetCode_Study_Plan/Algorithm 2022. 12. 20. 16:53
https://leetcode.com/problems/first-bad-version/?envType=study-plan&id=algorithm-i First Bad Version - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com /* The isBadVersion API is defined in the parent class VersionControl. boolean isBadVersion(int version); */ public class Solution ..
-
704. Binary Search javaLeetCode_Study_Plan/Algorithm 2022. 12. 20. 16:01
https://leetcode.com/problems/binary-search/description/?envType=study-plan&id=algorithm-i Binary Search - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com class Solution { public int search(int[] nums, int target) { int start = 0; int end = nums.length-1; int idx = -1; while (start..