Subscribe to:
Post Comments (Atom)
Diagonal Traversal
eg. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Output: 1 6 11 16 2 7 12 3 8 4 Approach:...
-
package pep.Day31 ; import java.io.BufferedReader ; import java.io.InputStreamReader ; import java.util.ArrayList ; import java.util.Iterato...
-
Why appending to a string in Java can become O(n²). 🔴 Problem: Strings are immutable in Java When you do: String s = "" ; s ...
-
https://leetcode.com/problems/two-sum/description/ Given the constraints: 2 <= nums.length <= 10⁴ -10⁹ <= nums[i] <= 10⁹ -10...
No comments:
Post a Comment