Longest Substring Without Repeating Characters https://leetcode.com/problems/longest-substring-without-repeating-characters/ Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. /**
Feb 11, 2022Sorting: https://leetcode.com/problems/sort-an-array/ Quick Sort: :::info Divide and Conquer Algorithm. In-Place Sorting Algorithm (No extra auxilary space needed) It picks an element as pivot and partitions the given array around the picked pivot.
Feb 11, 2022Advantages of HTTPS(Secure) over HTTP Data is encrypted before sending in HTTPs (Prevents Man In The Middle Attacks i.e Reading sniffed packtes). HTTPS does not have any separate protocol. It operates using HTTP but uses encrypted TLS/SSL connection and HTTP is build on top of TCP protocol. :::info TCP works on Application Layer but in addition to this, in HTTPS SSL/TLS works on the Transport Layer. More about OSI model is here ::: HTTPs requires SSL certificate and it should be signed by trusted Certificate Authority(CA) (Prevents Phishing,MITM Attacks). HTTPS connection(SSL/TLS Handshake)
Nov 24, 2020You have applied the Microservice architecture pattern. Sometimes a service instance can be incapable of handling requests yet still be running. For example, it might have run out of database connections. When this occurs, the monitoring system should generate an alert. How to detect that a running service instance or HTTP server is unable to handle requests? In a microservice MYSQL, Redis, and RabbitMq is used, then how to make sure MYSQL, Redis, and RabbitMQ are alive. Create an API for the health check of the server. In which we are checking the connection of MYSQL, Redis, and RabbitMQ. How to check MySQL Health? MySQL Health check code in NodeJs with TypeScript.
Nov 1, 2020or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up