nator1_hrj Profile Banner
natori Profile
natori

@nator1_hrj

Followers
13
Following
82
Media
94
Statuses
103

software engineer/from japan

Joined August 2024
Don't wanna be here? Send us removal request.
@nator1_hrj
natori
2 months
Day 92 of LeetCode . - 2410. Maximum Matching of Players With Trainers .- Sort both arrays and use two pointers for greedy matching of players with trainers .- O(n log n) solution .#LeetCode #Python #100DaysOfCode
Tweet media one
0
0
8
@nator1_hrj
natori
2 months
Day 92 of LeetCode . - 1394. Find Lucky Integer in an Array .- Count frequencies and find numbers where value equals frequency, return the maximum .- O(n) solution. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 91 of LeetCode . - 3085. Minimum Deletions to Make String K-Special .- Try each existing frequency as minimum, calculate deletions to fit all in [min_freq, min_freq+k] range .- O(n) solution. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
3
@nator1_hrj
natori
3 months
Day 90 of LeetCode . - 3443. Maximum Manhattan Distance After K Changes - Transform 2D problem to 1D by trying 4 diagonal directions, track position and flip opposite moves optimally .- O(n) solution. #LeetCode #Python #100DaysOfCode
Tweet media one
1
0
5
@nator1_hrj
natori
3 months
Day 89 of LeetCode . - 2294. Partition Array Such That Maximum Difference Is K .- Sort array and greedily group elements while max-min difference <= k .- O(n log n) solution. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
3
@nator1_hrj
natori
3 months
Day 88 of LeetCode . - 2966. Divide Array Into Arrays With Max Difference .- Sort array and group consecutive triplets, checking max-min difference <= k .- O(n log n) solution. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 87 of LeetCode . - 3405. Count the Number of Arrays with K Matching Adjacent Elements .- Combinatorics with binomial coefficients to choose k matching positions and calculate valid arrangements - O(n) solution. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 86 of LeetCode . - 2016. Maximum Difference Between Increasing Elements .- Single pass tracking minimum element seen so far and calculating maximum difference with current element when it's greater .- O(n) time O(1) space solution. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
3
@nator1_hrj
natori
3 months
Day 85 of LeetCode . - 1432. Max Difference You Can Get From Changing an Integer .- String manipulation to maximize by replacing first non-9 with 9, minimize by replacing first digit with 1 or finding first non-0/1 digit to replace with 0. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 84 of LeetCode . - 2566. Maximum Difference by Remapping a Digit .- String manipulation to find max value by replacing first non-9 digit with 9, and min value by strategically replacing first digit or first non-1/non-0 digit with 0 .#LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 83 of LeetCode . - 2616. Minimize the Maximum Difference of Pairs .- Binary search on answer combined with greedy pairing strategy to find minimum possible maximum difference among p pairs .- O(n log n) solution. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 82 of LeetCode . - 3423. Maximum Difference Between Adjacent Elements in a Circular Array .- Simple iteration through circular array to find max absolute difference between adjacent elements .- O(n) time solution. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 81 of LeetCode . - 3445. Maximum Difference Between Even and Odd Frequency II .- Advanced sliding window with prefix sums and parity tracking to find max difference between odd/even character frequencies .- Optimal O(n) solution. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 81 of LeetCode . - 3442. Maximum Difference Between Even and Odd Frequency I .- Character frequency analysis to find max difference between odd and even frequencies .- Simple Counter-based approach .#LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 80 of LeetCode . - 440. K-th Smallest in Lexicographical Order .- Tree-based counting approach to find kth element without generating all numbers .- Efficient prefix counting in lexicographical tree #LeetCode #Python #100DaysOfCode
Tweet media one
2
0
9
@nator1_hrj
natori
3 months
Day 79 of LeetCode . - 386. Lexicographical Numbers .- Generate numbers 1 to n in lexicographical order with O(n) time and O(1) space .- Simulate DFS traversal iteratively. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
2
@nator1_hrj
natori
3 months
Day 78 of LeetCode . - 3170. Lexicographically Minimum String After Removing Stars .- Greedy approach with heaps/stacks to track character positions .- Remove rightmost occurrence of smallest available character. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
1
@nator1_hrj
natori
3 months
Day 77 of LeetCode . - 2434. Using a Robot to Print the Lexicographically Smallest String .- Stack-based greedy approach with suffix minimum preprocessing .- Optimal timing for character output. #LeetCode #Python #100DaysOfCode
Tweet media one
0
0
1
@nator1_hrj
natori
3 months
Day 76 of LeetCode . - 1061. Lexicographically Smallest Equivalent String .- Union-Find for equivalence relations .- Build character groups and find lexicographically smallest representatives .#LeetCode #Python #100DaysOfCode
Tweet media one
0
0
1
@nator1_hrj
natori
3 months
Day 75 of LeetCode . - 3403. Find the Lexicographically Largest String From the Box I .- Efficient substring enumeration with split constraints .- Calculate maximum possible length from each position .#LeetCode #Python #100DaysOfCode
Tweet media one
1
0
4