- 171
- 19 389
CodeVia
India
เข้าร่วมเมื่อ 28 ก.พ. 2022
Hello Guys Namastey! here in this Channel you will find Java questions ,Sql from Leetcode and anywhere and much more to come please do subscribe !
3407. Substring Matching Pattern #leetcode #javaprogramming #dsa #dsalgo #coding #google
3407. Substring Matching Pattern #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding
leetcode.com/problems/substring-matching-pattern/description/
You are given a string s and a pattern string p, where p contains exactly one '*' character.
The '*' in p can be replaced with any sequence of zero or more characters.
Return true if p can be made a substring of s, and false otherwise.
A substring is a contiguous non-empty sequence of characters within a string.
Example 1:
Input: s = "leetcode", p = "ee*e"
Output: true
Explanation:
By replacing the '*' with "tcod", the substring "eetcode" matches the pattern.
Example 2:
Input: s = "car", p = "c*v"
Output: false
Explanation:
There is no substring matching the pattern.
Example 3:
Input: s = "luck", p = "u*"
Output: true
Explanation:
The substrings "u", "uc", and "uck" match the pattern.
leetcode.com/problems/substring-matching-pattern/description/
You are given a string s and a pattern string p, where p contains exactly one '*' character.
The '*' in p can be replaced with any sequence of zero or more characters.
Return true if p can be made a substring of s, and false otherwise.
A substring is a contiguous non-empty sequence of characters within a string.
Example 1:
Input: s = "leetcode", p = "ee*e"
Output: true
Explanation:
By replacing the '*' with "tcod", the substring "eetcode" matches the pattern.
Example 2:
Input: s = "car", p = "c*v"
Output: false
Explanation:
There is no substring matching the pattern.
Example 3:
Input: s = "luck", p = "u*"
Output: true
Explanation:
The substrings "u", "uc", and "uck" match the pattern.
มุมมอง: 37
วีดีโอ
3386. Button with Longest Push Time #leetcode #javaprogramming #dsa #dsalgo #coding #google
มุมมอง 85หลายเดือนก่อน
3386. Button with Longest Push Time #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/button-with-longest-push-time/description/ You are given a 2D array events which represents a sequence of events wher...
3360. Stone Removal Game #leetcode #javaprogramming #dsa #dsalgo #coding #googleinterview
มุมมอง 62หลายเดือนก่อน
3360. Stone Removal Game #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/stone-removal-game/description/ Alice and Bob are playing a game where they take turns removing stones from a pile, with Alice g...
3349. Adjacent Increasing Subarrays Detection I
มุมมอง 592 หลายเดือนก่อน
3349. Adjacent Increasing Subarrays Detection I leetcode.com/problems/adjacent-increasing-subarrays-detection-i/description/ Given an array nums of n integers and an integer k, determine whether there exist two adjacent subarrays of length k such that both subarrays are strictly increasing. Specifically, check if there are two subarrays starting at indices a and b a less than b, where: Both sub...
3330. Find the Original Typed String I #leetcode #javaprogramming #dsa #dsalgo #coding #array
มุมมอง 722 หลายเดือนก่อน
3330. Find the Original Typed String I #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/find-the-original-typed-string-i/description/ Alice is attempting to type a specific string on her computer. Howev...
2491. Divide Players Into Teams of Equal Skill #leetcode #twopointers #dsa #dsalgo #coding #array
มุมมอง 143 หลายเดือนก่อน
2491. Divide Players Into Teams of Equal Skill #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/divide-players-into-teams-of-equal-skill/description/?envType=daily-question&e...
3304. Find the K-th Character in String Game I #leetcode #javaprogramming #dsa #dsalgo #strings
มุมมอง 3663 หลายเดือนก่อน
3304. Find the K-th Character in String Game I #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/find-the-k-th-character-in-string-game-i/description/ Alice and Bob are playin...
1222. Queens That Can Attack the King #leetcode #javaprogramming #dsa #dsalgo #coding #array
มุมมอง 373 หลายเดือนก่อน
1222. Queens That Can Attack the King #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/queens-that-can-attack-the-king/description/ On a 0-indexed 8 x 8 chessboard, there can...
3295. Report Spam Message #leetcode #javaprogramming #dsa #dsalgo #hashmap #coding #array #strings
มุมมอง 803 หลายเดือนก่อน
3295. Report Spam Message #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/report-spam-message/description/ You are given an array of strings message and an array of strings ...
11. Container With Most Water #greedyalgorithm #dsa #dsalgo java #coding #array #strings
มุมมอง 534 หลายเดือนก่อน
11. Container With Most Water #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/container-with-most-water/description/ You are given an integer array height of length n. There...
888. Fair Candy Swap #leetcodequestionandanswers #java #dsa #array #dsa #leetcode #coding #array
มุมมอง 514 หลายเดือนก่อน
888. Fair Candy Swap #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/fair-candy-swap/description/ Alice and Bob have a different total number of candies. You are given two i...
605. Can Place Flowers #leetcodequestionandanswers #java #dsa #array #dsa #leetcode #coding
มุมมอง 584 หลายเดือนก่อน
605. Can Place Flowers #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/can-place-flowers/description/ You have a long flowerbed in which some of the plots are planted, and s...
3254. Find the Power of K-Size Subarrays I #leetcodequestionandanswers #java #dsa #array #dsa
มุมมอง 1834 หลายเดือนก่อน
3254. Find the Power of K-Size Subarrays I #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/find-the-power-of-k-size-subarrays-i/description/ You are given an array of intege...
3248. Snake in Matrix #leetcode #2darray #javaprogramming #dsa #dsalgo #coding #arraylist #arrays
มุมมอง 745 หลายเดือนก่อน
3248. Snake in Matrix #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/snake-in-matrix/description/
1275. Find Winner on a Tic Tac Toe Game #leetcode #2darray #javaprogramming #dsa #dsalgo #coding
มุมมอง 885 หลายเดือนก่อน
1275. Find Winner on a Tic Tac Toe Game #leetcodequestionandanswers #java #coding #array #greedyalgorithm #javainterviewquestions #interview #amazoninterviewpreparation #googleinterview #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap java #coding #array #strings #dsa #coding leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/description/ Tic-tac-toe is played by two players A...
2900. Longest Unequal Adjacent Groups Subsequence I #java #array #dsalgo #coding #array #strings
มุมมอง 205 หลายเดือนก่อน
2900. Longest Unequal Adjacent Groups Subsequence I #java #array #dsalgo #coding #array #strings
3216. Lexicographically Smallest String After a Swap #java #java #leetcode #dsa #strings
มุมมอง 1046 หลายเดือนก่อน
3216. Lexicographically Smallest String After a Swap #java #java #leetcode #dsa #strings
3210. Find the Encrypted String #java #coding #javainterviewquestions #leetcode #dsa #strings
มุมมอง 1126 หลายเดือนก่อน
3210. Find the Encrypted String #java #coding #javainterviewquestions #leetcode #dsa #strings
3200. Maximum Height of a Triangle #leetcode #googleinterview #dsa #dsalgo #programming #dsa #coding
มุมมอง 1656 หลายเดือนก่อน
3200. Maximum Height of a Triangle #leetcode #googleinterview #dsa #dsalgo #programming #dsa #coding
697. Degree of an Array #array #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap
มุมมอง 2786 หลายเดือนก่อน
697. Degree of an Array #array #leetcode #javaprogramming #dsa #dsalgo #programming #hashmap
3178. Find the Child Who Has the Ball After K Seconds #leetcodequestionandanswers #java #coding
มุมมอง 466 หลายเดือนก่อน
3178. Find the Child Who Has the Ball After K Seconds #leetcodequestionandanswers #java #coding
3159. Find Occurrences of an Element in an Array #java #array #leetcode #dsa #coding #array #dsa
มุมมอง 697 หลายเดือนก่อน
3159. Find Occurrences of an Element in an Array #java #array #leetcode #dsa #coding #array #dsa
2224. Minimum Number of Operations to Convert Time #leetcode #java #coding #greedyalgorithm
มุมมอง 227 หลายเดือนก่อน
2224. Minimum Number of Operations to Convert Time #leetcode #java #coding #greedyalgorithm
3142. Check if Grid Satisfies Conditions #leetcodequestionandanswers #java #coding #array #2darray
มุมมอง 718 หลายเดือนก่อน
3142. Check if Grid Satisfies Conditions #leetcodequestionandanswers #java #coding #array #2darray
3132. Find the Integer Added to Array II #leetcodequestionandanswers #java #coding #dsalgo #arrays
มุมมอง 688 หลายเดือนก่อน
3132. Find the Integer Added to Array II #leetcodequestionandanswers #java #coding #dsalgo #arrays
3114. Latest Time You Can Obtain After Replacing Characters #coding #javaprogramming #dsa #strings
มุมมอง 448 หลายเดือนก่อน
3114. Latest Time You Can Obtain After Replacing Characters #coding #javaprogramming #dsa #strings
3115. Maximum Prime Difference #leetcode #coding #codingsolutions #amazoninterviewpreparation
มุมมอง 289 หลายเดือนก่อน
3115. Maximum Prime Difference #leetcode #coding #codingsolutions #amazoninterviewpreparation
443. String Compression #leetcodequestionandanswers #java #coding #array #strings #dsa #coding
มุมมอง 689 หลายเดือนก่อน
443. String Compression #leetcodequestionandanswers #java #coding #array #strings #dsa #coding
3105. Longest Strictly Increasing or Strictly Decreasing Subarray #leetcodequestionandanswers #java
มุมมอง 309 หลายเดือนก่อน
3105. Longest Strictly Increasing or Strictly Decreasing Subarray #leetcodequestionandanswers #java
692. Top K Frequent Words #leetcodequestionandanswers #java #coding #treemap
มุมมอง 309 หลายเดือนก่อน
692. Top K Frequent Words #leetcodequestionandanswers #java #coding #treemap
Well explained!
Well explained!
Well explained!
Well explained!
Well explained!
Each bit means it's incremented once. s[k] = s[0] + bits_count(k) Just return bit count of k. public char kthCharacter(int k) { return (char) ('a' + Integer.bitCount(k - 1)); }
Great!
Great!
Well explained!
Well explained!
Great!
Kindly give that code please
Great video
Well explained!
Well explained!
Great!
Well explained!
Great!
Well explained!
Great!
Well explained!
Well explained!
❤
Well explained!
Time complexity is O(n^2). It can be solved in linear time O(n) using some extra space.
Excellent!
Great!
Great!
Well explained!
Great!
❤
3:05 bhaiya iss time me apne package April2022; likha hai, ye kya chiz hai ?
Bro i solve leetcode problem daily so i make package month wise like this q i solved in april 2022
Well explained!
Great!
Well explained!
Great!
Well explained!
Great!
Good!
Well explained!
Well explained!
Great!
Great!
Well explained!
Its not passed all testcases in leetcode.
Well explained!
Great!
it wont work
All cases are passed do you have any specific case?
Great!
Well explained!