algorithms共98篇
Leetcode 75. Sort Colors-拾光赋

Leetcode 75. Sort Colors

Leetcode 75. Sort Colors, Intuition The basic intuition comes from sorting. Approach In the naive approach, we can sort the array using inbuilt sorting function. The time complexit...
kity的头像-拾光赋kity3天前
0238
Understanding the XOR Operator: A Powerful Tool in Computing-拾光赋

Understanding the XOR Operator: A Powerful Tool in Computing

Understanding the XOR Operator: A Powerful Tool in Computing,The XOR operator, short for Exclusive OR, is a fundamental concept in computer science, mathematics, and digital logic....
kity的头像-拾光赋kity3天前
0325
Kadane's Algorithm: Leetcode 53 Maximum subarray-拾光赋

Kadane’s Algorithm: Leetcode 53 Maximum subarray

Kadane's Algorithm: Leetcode 53 Maximum subarray, Intuition We can build the intuition based on the two-point approach. Approach We will start with two variables maxSum and maxTill...
kity的头像-拾光赋kity3天前
02912
Understanding the Bag ADT in Java: A Flexible Data Structure-拾光赋

Understanding the Bag ADT in Java: A Flexible Data Structure

Understanding the Bag ADT in Java: A Flexible Data Structure,This article explains the Bag Abstract Data Type (ADT) in Java, highlighting its ability to handle unordered collection...
kity的头像-拾光赋kity1个月前
04213
Queue, Deque, and Priority Queue: Key Data Structures Explained-拾光赋

Queue, Deque, and Priority Queue: Key Data Structures Explained

Queue, Deque, and Priority Queue: Key Data Structures Explained,This article explains the fundamental differences between three important abstract data types (ADTs) in computer sci...
kity的头像-拾光赋kity1个月前
0288
Merge Sort: Divide-and-Conquer for Large Datasets-拾光赋

Merge Sort: Divide-and-Conquer for Large Datasets

Merge Sort: Divide-and-Conquer for Large Datasets,This article explains Merge Sort, a divide-and-conquer algorithm with a time complexity of O(n log n). The algorithm is ideal for ...
kity的头像-拾光赋kity1个月前
04612
Sorting Algorithms: Comparison and Implementation — Java-拾光赋

Sorting Algorithms: Comparison and Implementation — Java

Sorting Algorithms: Comparison and Implementation — Java,This article provides an overview of different sorting algorithms, focusing on both comparative and non-comparative method...
kity的头像-拾光赋kity1个月前
03014
Asymptotic Analysis Exercises — Java-拾光赋

Asymptotic Analysis Exercises — Java

Asymptotic Analysis Exercises — Java,This documentation is part of the Critical Thinking 3 Assignment from CSC400: Data Structures and Algorithms at Colorado State University Glob...
kity的头像-拾光赋kity1个月前
0269
Mastering Binary Search in JavaScript and Java: A Step-by-Step Guide-拾光赋

Mastering Binary Search in JavaScript and Java: A Step-by-Step Guide

Mastering Binary Search in JavaScript and Java: A Step-by-Step Guide,Binary search is a fundamental algorithm every developer should understand, offering a highly efficient way to ...
kity的头像-拾光赋kity2个月前
04811
Thread Concurrency In Java-拾光赋

Thread Concurrency In Java

Thread Concurrency In Java,Thread Concurrency or Multithreading in advanced Java allows multiple threads to execute concurrently, enhancing performance and responsiveness in comple...
kity的头像-拾光赋kity3个月前
0398
Java Inner Classes and Nested Classes-拾光赋

Java Inner Classes and Nested Classes

Java Inner Classes and Nested Classes,In Java, an inner class is simply a class that’s defined inside another class or interface. Inner classes help keep related code together, ma...
kity的头像-拾光赋kity3个月前
02310
Jump Game II: A Deep Dive into LeetCode's Classic Algorithm Problem-拾光赋

Jump Game II: A Deep Dive into LeetCode’s Classic Algorithm Problem

Jump Game II: A Deep Dive into LeetCode's Classic Algorithm Problem,The Jump Game II problem is a classic example that tests your understanding of greedy algorithms and array manip...
kity的头像-拾光赋kity3个月前
04810