Home
Nguyen Tai
Cancel

Mysql - Back to basic - ACID

Chắc hẳn anh em đã từng nghe 4 tính chất quan trọng cần đảm bảo trong xử lý transaction của database bao gồm tính nguyên tử, tính nhất quán, tính cô lập và tính bền vững (ACID). Các bài viết về c...

Đánh đổi giữa tính nhất quán và tính sẵn sàng (Tradeoff between Consistency and Availability)

Có thực sự tồn tại một hệ thống phân tán đủ 3 yếu tố “Ngon bổ rẻ”? Định lý CAP và ứng dụng. Trong bài viết này, chúng ta sẽ khám phá các khái niệm cơ bản của tính nhất quán, tính sẵn sàng và khả nă...

Single Sign On Overview (Tổng quan về xác thực SSO)

I. Khái niệm Là phương thức xác thực cho phép người dùng đăng nhập vào nhiều ứng dụng hoặc hệ thống trong 1 hệ sinh thái bằng cách đăng nhập 1 lần duy nhất trong hệ sinh thái đó. Đặc biệt phù hợp v...

Authentication overview (Tổng quan về các phương thức xác thực)

I. Đặt vấn đề Authentication là quá trình xác nhận danh tính của 1 đối tượng, thường là một cá nhân hoặc một hệ thống, đảm bảo rằng đối tượng này chính là đối tượng được xác thực bởi hệ thống. Thôn...

Leetcode 165. Compare version number

Problem Leet code problem 165 Difficulty: Medium Solution Split each version into arrays of revisions using string.split(\\.) version1: 1.0.01 -> ["1", "0", "01"] version2: 1.0 -&gt...

Leetcode 881. Boats to save people

Problem Leet code problem 881 Difficulty: Medium — Solution Implementation Code from github First approach (HashMap) public class L2441_LargestPositiveIntegerThatExistsWithItsNegative { public...

Leetcode 2441. Largest Positive Integer That Exists With Its Negative

Problem Leet code problem 2441 Difficulty: Easy — Solution Initial approach Utilize HashMap, iterate the whole array, for each item add it to the map. Each item should have one of the following val...

Leetcode 2114. Maximum Number of Words Found in Sentences

Leet code problem 2114 Difficulty: Easy — Solution This is pretty straight forward. You can just count the number of words text.split(" ") Or count the spaces between letters because the quest...

Leetcode 35. Search Insert position

Leet code problem 35 Difficulty: Easy — Solution The question mentioned that the complexity must be Olog(n) and it’s a search algorithm We can clearly see that one of the way to solve this is ...

Binary Search

Image from GeeksForGeeks #binary_search, #binary_chop, #half_interval_search, #logarithmic_search Condition The data structure must be sorted Can access to any item in the data structure...