This repository contains my solutions to LeetCode problems. Created with ️ by LeetPush Made by Tut: GitHub - LinkedIn Hüsam: GitHub - LinkedIn Happy coding! 🚀 LeetCode Topics String 0006-zigzag-conversion 0014-longest-common-prefix 0020-valid-parentheses 0076-minimum-window-substring 0299...
Given an object or an array, return if it is empty. An empty object contains no key-value pairs. An empty array contains no elements. You may assume the object or array is the output ofJSON.parse. Example 1: Input:obj = {"x": 5, "y": 42}Output:falseExplanation:The object has 2...
Hello, LeetCode team 😄 If we go through the examples of the problem and stop at the very first explanation: Explanation:[1,2,3,4,5] is the original sorted array. You can rotate the array by x = 3 positions to begin on the the element of value 3: [3,4,5,1,2]. The definit...
The introduction and purchase of "Algorithm Clearance Road" can be accessed at:https://leetcode-solution.cn/book-intro How to use LeetCode website LeetCode (LeetCode) official website contains a lot of Internet companies' algorithm problems, which was once called an artifact of brushing problem...
package leetcode // 解法一 O(n^2) func isSubsequence(s string, t string) bool { index := 0 for i := 0; i < len(s); i++ { flag := false for ; index < len(t); index++ { if s[i] == t[index] { flag = true break } } if flag == true { index++ continue } else...
leetcode 363. Max Sum of Rectangle No Larger Than K 写在前面 这题被标记为hard,第一眼看到,确实很容易想到是dp,但思路之后就陷入混乱,原因就是不知道dp的状态转移方程,以及dp过程的开始和结束,本题事实上是两道题目的组合,分别是 Max Sum of Rectangle in a matrix,这道题的题解可以看这个视频(需要...
Leetcode: Is Subsequence Given a string s and a string t, checkifs is subsequence of t. You may assume that there is only lowercaseEnglish letters in both s and t. t is potentially a verylong(length ~= 500,000) string, and s is ashortstring (<=100)....
leetcode 653. Two Sum IV - Input is a BST Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. Example 1: Input:5 / \ 3 6 / \ \...
LEETCODE all system design problems Web Crawler'] https://leetcode.com/discuss/interview-question/system-design/124657/Facebook-or-System-Design-or-A-web-crawler-that-will-crawl-Wikipedia Detect web crawlerhttps://leetcode.com/discuss/interview-question/system-design/548816/Amazon-or-System-Design...
There's always LeetCode :) But maybe it will also suffer if Google and Meta reduce their hirings... → Reply ExpensiveAC 2 years ago, # ^ | +15 CodeChef contests still have 20k+ participants, it definitely isn't "almost dead" → Reply gultai4ukr 2 years ago, # ^ | +...