Arama Sonuçları: "#ArrayProblems"

20 sonuç
Bhumi Pandey
Bhumi Pandey@BhumiPandey06·
LeetCode 2149 – Rearrange Array Elements by Sign Solved: Rearrange array with alternating+ve and-ve elements Used two lists to collect positives & negatives Then merged alternately→O(n) time,O(n) space Great for understanding order-based array handling! #LeetCode #ArrayProblems
English
0
0
0
29
Bhumi Pandey
Bhumi Pandey@BhumiPandey06·
LeetCode 414 – Third Maximum Number Solved: Find the 3rd distinct max number in the array Used a set to track unique values Handled edge case: return max if < 3 distinct numbers Cleans up logic around max tracking & uniqueness! #LeetCode #PythonDSA #ArrayProblems
English
0
0
0
28
Bhumi Pandey
Bhumi Pandey@BhumiPandey06·
LeetCode 905 – Sort Array By Parity Solved: Sort array so even numbers come before odds Used two-pointer approach to build new array Also tried in-place method using swaps Great for strengthening conditional + pointer logic! #LeetCode #PythonDSA #ArrayProblems
English
0
0
0
45
Bhumi Pandey
Bhumi Pandey@BhumiPandey06·
LeetCode 941 – Valid Mountain Array Solved: Check if the array forms a valid mountain shape Strictly increasing, then strictly decreasing Used two-pointer climb + descent logic Edge cases = key here Great mix of condition checks & pointer flow! #LeetCode #PythonDSA #ArrayProblems
English
0
0
0
30
Bhumi Pandey
Bhumi Pandey@BhumiPandey06·
LeetCode 1089 – Duplicate Zeros Solved: Duplicate each zero in the array in-place, shifting elements right Used two passes: Count how many zeros can be duplicated Fill from the back using reverse two-pointer Great for tricky in-place logic! #LeetCode #PythonDSA #ArrayProblems
English
0
0
0
159
Bhumi Pandey
Bhumi Pandey@BhumiPandey06·
LeetCode 1295 – Find Numbers with Even Number of Digits Solved: Count how many numbers in the array have even digits Used len(str(num)) % 2 == 0 to check digit count Clean loop, simple condition — perfect warm-up! #LeetCode #PythonDSA #ArrayProblems
English
0
0
0
180
Ghost of uchiha
Ghost of uchiha@gama_katsu336·
🚀 Solving Array Problems in Python 🧠 Q1: Second Largest Element Given an array, return the second largest element, or -1 if it doesn't exist. #Python #ArrayProblems #Coding
English
0
0
0
6