Home
YUHA👩🏻‍💻
Cancel

[Binary Search] Search in Rotated Sorted Array

‘Search in Rotated Sorted Array’ in LeetCode (Medium) 📌 Problem https://leetcode.com/problems/search-in-rotated-sorted-array/ 📌 Answer The point set judgement to check two points ...

[Data Structure] HashSet vs TreeSet

📌 Common feature No duplicate elements Only one null element 📌 Comparison Most important difference between HashSet and TreeSet is ordering. HashSet TreeSet ...

[Algorithm] Big-O notation

Big-O notation 📌 What is it? a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity. In computer...

[Algorithm] Combination Sum

‘Combination Sum’ in LeetCode (Medium) 📌 Problem https://leetcode.com/problems/combination-sum/ 📌 Answer The point backtracking import java.util.List; class Solution { public List<...

[Algorithm] Binary search

📌 What is binary search algorithm? 1️⃣ Choose the middle element, as doing so causes the set of candidates to be halved each time. (To reduce the set of candidates maximally.) 2️⃣ Use the informat...