Tag

LeetCode

0 views collected around this technical thread.

IT Services Circle
IT Services Circle
Jun 3, 2025 · Fundamentals

LeetCode 764 – Order of Largest Plus Sign: Problem Explanation and Multi‑Language Solutions

This article presents the LeetCode 764 problem of finding the largest axis‑aligned plus sign in a binary grid, explains the preprocessing and simulation approach using four directional prefix arrays, analyzes time and space complexity, and provides complete Java, C++, Python, and TypeScript implementations.

JavaLeetCodePython
0 likes · 12 min read
LeetCode 764 – Order of Largest Plus Sign: Problem Explanation and Multi‑Language Solutions
Java Tech Enthusiast
Java Tech Enthusiast
May 27, 2025 · Fundamentals

Maximum Probability Path (LeetCode 1514) – Problem Analysis and Java/C++ Solutions

This article presents the LeetCode 1514 'Maximum Probability Path' problem, explains the algorithm using a priority‑queue approach, provides full Java and C++ implementations, and concludes with a promotional book giveaway encouraging readers to follow the public account.

C++DijkstraJava
0 likes · 8 min read
Maximum Probability Path (LeetCode 1514) – Problem Analysis and Java/C++ Solutions
IT Services Circle
IT Services Circle
May 21, 2025 · Fundamentals

Maximum Probability Path (LeetCode 1514) – Problem Description and Java/C++ Solutions

This article presents LeetCode problem 1514, which asks for the path with the highest success probability in an undirected weighted graph, explains the problem statement, constraints, and provides detailed Java and C++ implementations using a priority‑queue based Dijkstra‑like algorithm.

C++DijkstraJava
0 likes · 7 min read
Maximum Probability Path (LeetCode 1514) – Problem Description and Java/C++ Solutions
Java Tech Enthusiast
Java Tech Enthusiast
May 15, 2025 · Fundamentals

Detect Squares Problem – Algorithm Design, Hash‑Map Solutions, and Complexity Analysis

The article first highlights Tencent's Q1 2025 financial results and user metrics, then introduces the LeetCode 2013 'Detect Squares' problem, describing its requirements, example, and offering Java, C++, Python, and array‑based solutions along with time and space complexity analysis.

C++DataStructureDetectSquares
0 likes · 9 min read
Detect Squares Problem – Algorithm Design, Hash‑Map Solutions, and Complexity Analysis
IT Services Circle
IT Services Circle
May 13, 2025 · Fundamentals

Maximum Number of Non-Overlapping Subarrays with Sum Equals Target (LeetCode 1546)

The article first critiques a hiring manager’s salary‑balance rationale for a 985‑master candidate, then presents LeetCode problem 1546 on finding the maximum number of non‑overlapping subarrays whose sums equal a target, explaining the solution using prefix sums and providing Java and C++ implementations.

C++JavaLeetCode
0 likes · 6 min read
Maximum Number of Non-Overlapping Subarrays with Sum Equals Target (LeetCode 1546)
Java Tech Enthusiast
Java Tech Enthusiast
Feb 4, 2025 · Fundamentals

LeetCode 31 – Next Permutation: Problem, Analysis, and Code

The Next Permutation problem asks to rearrange an integer array into the immediate lexicographically larger ordering—or the smallest order if none exists—by scanning from the right to find the first decreasing pair, swapping with the next larger element, and reversing the suffix, using O(1) extra space, with implementations provided in Java, C++, and Python.

C++JavaLeetCode
0 likes · 7 min read
LeetCode 31 – Next Permutation: Problem, Analysis, and Code
Java Tech Enthusiast
Java Tech Enthusiast
Jan 29, 2025 · Fundamentals

LeetCode 57 – Insert Interval Problem with Java, C++, and Python Solutions

LeetCode 57 asks you to insert a new interval into a sorted list of non‑overlapping intervals, merging any overlaps so the result stays sorted and disjoint, and the article explains the O(n) algorithm and provides concise implementations in Java, C++ and Python.

C++JavaLeetCode
0 likes · 6 min read
LeetCode 57 – Insert Interval Problem with Java, C++, and Python Solutions
IT Services Circle
IT Services Circle
Jan 13, 2025 · Fundamentals

Longest Palindromic Substring – DP Solution and Java/C++ Implementations

The article first shares a personal anecdote about job background checks and then presents a detailed explanation of LeetCode problem 5 – Longest Palindromic Substring – including problem description, dynamic‑programming analysis, recurrence formula, and complete Java and C++ code examples.

C++DPJava
0 likes · 8 min read
Longest Palindromic Substring – DP Solution and Java/C++ Implementations
Java Tech Enthusiast
Java Tech Enthusiast
Dec 12, 2024 · Fundamentals

LeetCode 814: Binary Tree Pruning

The article explains LeetCode 814, where a binary tree of 0s and 1s is pruned by recursively removing subtrees lacking a 1, using a post‑order traversal that returns null for nodes with value 0 and no retained children, achieving O(n) time and O(h) space.

Binary TreeC++Java
0 likes · 6 min read
LeetCode 814: Binary Tree Pruning
Java Tech Enthusiast
Java Tech Enthusiast
Dec 1, 2024 · Fundamentals

LeetCode 34: Binary Search Range

LeetCode 34 asks for the first and last indices of a target in a non‑decreasing integer array, returning [-1,-1] when absent, and can be solved in O(log n) time by applying two binary‑search passes—one locating the leftmost occurrence and the other the rightmost—illustrated with Java, C++, and Python implementations.

C++JavaLeetCode
0 likes · 8 min read
LeetCode 34: Binary Search Range
Tencent Cloud Developer
Tencent Cloud Developer
Oct 29, 2024 · Backend Development

Improving Backend Engineer Skills: Abstract Problem Solving and Code Abstractions

The article argues that a backend engineer’s growth hinges on mastering communication, clean coding, and architecture design by consistently abstracting problems—illustrated through Go’s ServerCodec and I/O interfaces, efficient algorithms like Trie‑based word search, and Rust’s ownership model—while recommending early Go/Rust study, reading well‑commented libraries, and hands‑on service building.

Code AbstractionLeetCodealgorithm design
0 likes · 22 min read
Improving Backend Engineer Skills: Abstract Problem Solving and Code Abstractions
Java Tech Enthusiast
Java Tech Enthusiast
May 1, 2024 · Fundamentals

Zigzag Conversion Algorithm (LeetCode 6)

The Zigzag Conversion algorithm rearranges an input string into a Z‑shaped pattern across a specified number of rows, tracks the current row while toggling direction at the top and bottom, stores characters per row, and finally concatenates the rows to produce the transformed string, with reference implementations in C++, Java, and Python.

C++JavaLeetCode
0 likes · 9 min read
Zigzag Conversion Algorithm (LeetCode 6)