Abhi Radadiya (@abhiradadiya30) 's Twitter Profile
Abhi Radadiya

@abhiradadiya30

software developer

GFG - geeksforgeeks.org/user/abhiradadโ€ฆ

ID: 1467352234212028418

calendar_today05-12-2021 04:37:00

57 Tweet

26 Takipรงi

195 Takip Edilen

Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ”ข (57/500) Arithmetic Subarrays ๐Ÿ”ข Solved the problem of checking whether given subarrays are arithmetic sequences! ๐Ÿ“Š Efficient sorting & difference checks did the trick! ๐Ÿš€ #DSA #Leetcode #ProblemSolving #Coding

๐Ÿ”ข (57/500) Arithmetic Subarrays ๐Ÿ”ข
Solved the problem of checking whether given subarrays are arithmetic sequences! ๐Ÿ“Š Efficient sorting & difference checks did the trick! ๐Ÿš€
#DSA #Leetcode #ProblemSolving #Coding
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ”„ (58/500) Two Repeated Elements ๐Ÿ”„ Identified two numbers that appear twice in an array while keeping their order intact! ๐Ÿ”ข Used hashing for an optimal solution! โœ… #DSA #Leetcode #Coding #ProblemSolving

๐Ÿ”„ (58/500) Two Repeated Elements ๐Ÿ”„
Identified two numbers that appear twice in an array while keeping their order intact! ๐Ÿ”ข Used hashing for an optimal solution! โœ…
#DSA #Leetcode #Coding #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ“Š (59/500) More than N/K Occurrences ๐Ÿ“Š Found elements appearing more than N/K times in an array! โšก Used frequency maps to optimize counting! ๐Ÿ”ฅ #DSA #Leetcode #Coding #ProblemSolving

๐Ÿ“Š (59/500) More than N/K Occurrences ๐Ÿ“Š
Found elements appearing more than N/K times in an array! โšก Used frequency maps to optimize counting! ๐Ÿ”ฅ
#DSA #Leetcode #Coding #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿงฎ (60/500) Number and Digit Sum ๐Ÿงฎ Counted numbers where the difference between the number and its digit sum meets the required condition! โœ”๏ธ Math and loops for an efficient solution! ๐Ÿ”ฅ #DSA #Leetcode #ProblemSolving #Coding

๐Ÿงฎ (60/500) Number and Digit Sum ๐Ÿงฎ
Counted numbers where the difference between the number and its digit sum meets the required condition! โœ”๏ธ Math and loops for an efficient solution! ๐Ÿ”ฅ
#DSA #Leetcode #ProblemSolving #Coding
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

โž• (61/500) Find Triplets with Zero Sum โž• Checked if an array contains a triplet whose sum is zero! โœ… Used sorting & two-pointer technique for an optimized approach! ๐Ÿš€ #DSA #Leetcode #Coding #ProblemSolving

โž• (61/500) Find Triplets with Zero Sum โž•
Checked if an array contains a triplet whose sum is zero! โœ… Used sorting & two-pointer technique for an optimized approach! ๐Ÿš€
#DSA #Leetcode #Coding #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

Solved: Smallest window containing 0, 1, and 2! ๐Ÿ”ฅ Found the shortest substring with all three digits. Efficient approach with sliding window. ๐Ÿš€ #DSA #Coding #ProblemSolving

Solved: Smallest window containing 0, 1, and 2! ๐Ÿ”ฅ Found the shortest substring with all three digits. Efficient approach with sliding window. ๐Ÿš€ 
#DSA #Coding #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

โœ… Solved: Sum of two large numbers given as strings! ๐Ÿš€ ๐Ÿ“ Example: "2500" + "23" โ†’ "2523" | "25" + "23" โ†’ "48" #DSA #Coding #ProblemSolving

โœ… Solved: Sum of two large numbers given as strings! ๐Ÿš€

๐Ÿ“ Example: "2500" + "23" โ†’ "2523" | "25" + "23" โ†’ "48"
#DSA #Coding #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

โœ… Solved: Length of the longest substring without repeating characters! ๐Ÿš€ ๐Ÿ“ Example: "abcabcbb" โ†’ 3 | "bbbbb" โ†’ 1 | "pwwkew" โ†’ 3 #DSA #Coding #ProblemSolving

โœ… Solved: Length of the longest substring without repeating characters! ๐Ÿš€

๐Ÿ“ Example: "abcabcbb" โ†’ 3 | "bbbbb" โ†’ 1 | "pwwkew" โ†’ 3
#DSA #Coding #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

โœ… Solved: Smallest window containing all characters of a string! ๐Ÿš€ ๐Ÿ“ Example: "AABBBCBBAC" โ†’ 3 ("BAC") | "aaab" โ†’ 2 ("ab") | "abcd" โ†’ 4 ("abcd") #DSA #Coding #ProblemSolving

โœ… Solved: Smallest window containing all characters of a string! ๐Ÿš€

๐Ÿ“ Example: "AABBBCBBAC" โ†’ 3 ("BAC") | "aaab" โ†’ 2 ("ab") | "abcd" โ†’ 4 ("abcd")
#DSA #Coding #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ“Š Excel Sheet Column Title ๐Ÿ”น Convert N to its Excel column title! ๐Ÿ”น 1 โ†’ A, 27 โ†’ AA, 52 โ†’ AZ

๐Ÿ“Š Excel Sheet Column Title
๐Ÿ”น Convert N to its Excel column title!
๐Ÿ”น 1 โ†’ A, 27 โ†’ AA, 52 โ†’ AZ
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ”  Case-Specific Sorting ๐Ÿ”น Sort uppercase & lowercase separately while keeping positions! ๐Ÿ”น "DefRTSersUXI" โ†’ "DeIRSRefrTUX" #DSA #Coding #ProblemSolvin

๐Ÿ”  Case-Specific Sorting
๐Ÿ”น Sort uppercase & lowercase separately while keeping positions!
๐Ÿ”น "DefRTSersUXI" โ†’ "DeIRSRefrTUX"
#DSA #Coding #ProblemSolvin
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ” Transform String Challenge ๐Ÿงฉ Rearrange A into B using only front insert operations! ๐Ÿ…ฐ๏ธ "bcad" โžก๏ธ ๐Ÿ…ฑ๏ธ "abcd" โ†’ โœ… 1 move ๐Ÿ’ก Count how many end-chars already match from the back! #DSA #CodingChallenge #ProblemSolving #LogicBuilding

๐Ÿ” Transform String Challenge
๐Ÿงฉ Rearrange A into B using only front insert operations!
๐Ÿ…ฐ๏ธ "bcad" โžก๏ธ ๐Ÿ…ฑ๏ธ "abcd" โ†’ โœ… 1 move
๐Ÿ’ก Count how many end-chars already match from the back!
#DSA #CodingChallenge #ProblemSolving #LogicBuilding
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง Triplet Family ๐Ÿ”ข Find 3 numbers where two add up to the third! ๐Ÿงฎ Sort the array โž• Check all pairs! ๐Ÿ’ฅ Example: [2, 3, 5] โ†’ โœ… 2 + 3 = 5 #DSA #CodingFun #ArrayMagic #ProblemSolving

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง Triplet Family
๐Ÿ”ข Find 3 numbers where two add up to the third!
๐Ÿงฎ Sort the array โž• Check all pairs!
๐Ÿ’ฅ Example: [2, 3, 5] โ†’ โœ… 2 + 3 = 5
#DSA #CodingFun #ArrayMagic #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

โœ‚๏ธ Rope Cutting Challenge ๐Ÿชข Cut all ropes by the smallest length, repeat till zero! ๐Ÿ“‰ Track how many ropes remain after each cut! ๐Ÿ’ก Ex: [5, 1, 2] โ†’ 3 โžก๏ธ 2 โžก๏ธ 1 #DSA #GreedyAlgo #ProblemSolving #CodingChallenge

โœ‚๏ธ Rope Cutting Challenge
๐Ÿชข Cut all ropes by the smallest length, repeat till zero!
๐Ÿ“‰ Track how many ropes remain after each cut!
๐Ÿ’ก Ex: [5, 1, 2] โ†’ 3 โžก๏ธ 2 โžก๏ธ 1
#DSA #GreedyAlgo #ProblemSolving #CodingChallenge
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿงฉ Make Array Elements Unique ๐ŸŽฏ Increment elements to remove duplicates โš™๏ธ Only +1 allowed per move ๐Ÿ“‰ Minimize operations! ๐Ÿ’ก Ex: [3,2,1,2,1,7] โ†’ 6 ops #DSA #GreedyAlgo #CodingChallenge #ProblemSolving

๐Ÿงฉ Make Array Elements Unique
๐ŸŽฏ Increment elements to remove duplicates
โš™๏ธ Only +1 allowed per move
๐Ÿ“‰ Minimize operations!
๐Ÿ’ก Ex: [3,2,1,2,1,7] โ†’ 6 ops
#DSA #GreedyAlgo #CodingChallenge #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ” Kth Smallest Element ๐Ÿ“ฆ Find the k-th smallest without using sort! ๐Ÿ’ก Use Min Heap or QuickSelect for efficiency! Ex: [7, 10, 4, 3, 20, 15], k = 3 โ†’ โœ… 7 #DSA #Heap #QuickSelect #CodingChallenge #ProblemSolving

๐Ÿ” Kth Smallest Element
๐Ÿ“ฆ Find the k-th smallest without using sort!
๐Ÿ’ก Use Min Heap or QuickSelect for efficiency!
Ex: [7, 10, 4, 3, 20, 15], k = 3 โ†’ โœ… 7
#DSA #Heap #QuickSelect #CodingChallenge #ProblemSolving
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ” Smallest Positive Missing ๐Ÿ“ฆ Find the first missing positive number in an array (may include negatives)! ๐Ÿ’ก No extra space, O(n) time using index marking! Ex: [4, 7, -1, 1, 2] โ†’ โœ… 3 #DSA #Array #CodingChallenge #ProblemSolving #TechTips

๐Ÿ” Smallest Positive Missing
๐Ÿ“ฆ Find the first missing positive number in an array (may include negatives)!
๐Ÿ’ก No extra space, O(n) time using index marking!
Ex: [4, 7, -1, 1, 2] โ†’ โœ… 3
#DSA #Array #CodingChallenge #ProblemSolving #TechTips
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ” String Formation Check ๐Ÿ“ฆ Can a string be made by repeating a substring? ๐Ÿ’ก Use LPS (KMP-style) to solve in O(n) time! Ex: "ababab" โ†’ โœ… "ab" repeated 3 times! #DSA #StringProblems #KMP #CodingChallenge #ProblemSolving #TechTips

๐Ÿ” String Formation Check
๐Ÿ“ฆ Can a string be made by repeating a substring?
๐Ÿ’ก Use LPS (KMP-style) to solve in O(n) time!
Ex: "ababab" โ†’ โœ… "ab" repeated 3 times!
#DSA #StringProblems #KMP #CodingChallenge #ProblemSolving #TechTips
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ” String Formation Check Given string S and permutation P, find the minimum days to replace characters so no two adjacent ones are the same. Input: N = 4, S = "aabb", P = {2, 1, 3, 0} Output: 2 #StringProblems #DSA #TechTips

๐Ÿ” String Formation Check
Given string S and permutation P, find the minimum days to replace characters so no two adjacent ones are the same.
Input:
N = 4, S = "aabb", P = {2, 1, 3, 0}
 Output: 2

#StringProblems #DSA #TechTips
Abhi Radadiya (@abhiradadiya30) 's Twitter Profile Photo

๐Ÿ”Ž Search in a Strictly Sorted 2D Matrix! ๐Ÿ“ˆ Each row is strictly increasing & starts > last of prev row. โšก Start from top-right: If mat[i][j] == x โ†’ โœ… mat[i][j] > x โ†’ j-- mat[i][j] < x โ†’ i++ O(n+m) time! ๐Ÿš€ #Coding #DSA

๐Ÿ”Ž Search in a Strictly Sorted 2D Matrix!
๐Ÿ“ˆ Each row is strictly increasing &amp; starts &gt; last of prev row.
โšก Start from top-right:
If mat[i][j] == x โ†’ โœ…
mat[i][j] &gt; x โ†’ j--

mat[i][j] &lt; x โ†’ i++
O(n+m) time! ๐Ÿš€
#Coding #DSA