How HTTPS works?

Welcome back! Today I will introduce to you another interesting topic: “How HTTPS works?”. Let’s get started. First of all, what is HTTP? HTTP stands for Hyper Text Transfer Protocol, It is a protocol used to connect devices on the internet. So, how can devices connect through HTTP? Take a look at the picture. Basically, the user will create a request to a server with some data; in this case, the data is {name: John, password: 123}....

September 15, 2020 · 2 min · 408 words · Me

Git Under the Hood

Introduction If you are a developer you may at least one time use version control such as: GIT, BITBUCKET, SVN… and i think GIT will be the first choice among these tools. Have you ever wonder why GIT is so common like that? What is the power behind GIT?, etc. Today you and I will discover the secret of GIT and after this article you won’t scare GIT anymore. Let’s get started...

November 3, 2023 · 7 min · 1393 words · Me

2367. Number of Arithmetic Triplets

Description You are given a 0-indexed, strictly increasing integer array nums and a positive integer diff. A triplet (i, j, k) is an arithmetic triplet if the following conditions are met: i < j < k, nums[j] - nums[i] == diff, and nums[k] - nums[j] == diff. Return the number of unique arithmetic triplets. You are given a 0-indexed array nums of length n. The distinct difference array of nums is an array diff of length n such that diff[i] is equal to the number of distinct elements in the suffix nums[i + 1, …, n - 1] subtracted from the number of distinct elements in the prefix nums[0, …, i]....

September 15, 2020 · 2 min · 240 words · Me

2670. Find the Distinct Difference Array

Description You are given a 0-indexed array nums of length n. The distinct difference array of nums is an array diff of length n such that diff[i] is equal to the number of distinct elements in the suffix nums[i + 1, …, n - 1] subtracted from the number of distinct elements in the prefix nums[0, …, i]. Return the distinct difference array of nums. Note that nums[i, …, j] denotes the subarray of nums starting at index i and ending at index j inclusive....

September 15, 2020 · 1 min · 196 words · Me