Tag

interview question

1 views collected around this technical thread.

macrozheng
macrozheng
May 8, 2025 · Databases

Why Storing 2 Billion Phone Numbers Requires VARCHAR(20) Over INT: Interview Insights

The article examines an interview question about storing 2 billion phone numbers, explains why int cannot hold 11‑digit numbers, advocates using VARCHAR(20) for flexibility and data integrity, and outlines common pitfalls and best practices for database design.

BIGINTDatabase DesignMySQL
0 likes · 8 min read
Why Storing 2 Billion Phone Numbers Requires VARCHAR(20) Over INT: Interview Insights
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 15, 2024 · Frontend Development

Implementing LazyMan in JavaScript with Chainable Methods and Task Queue

This article explains the LazyMan interview problem, demonstrates how to build a JavaScript function supporting chainable sleep, eat, and sleepFirst methods using task queues, and provides step‑by‑step code implementations with explanations and visual results.

ChainableJavaScriptLazyMan
0 likes · 7 min read
Implementing LazyMan in JavaScript with Chainable Methods and Task Queue
IT Services Circle
IT Services Circle
Dec 29, 2023 · Fundamentals

Tencent 2024 Campus Recruitment Salary Overview and Reverse Nodes in k‑Group Java Solution

The article first presents a detailed analysis of Tencent's 2024 campus recruitment salary packages for various programmer offers, then introduces a classic algorithmic challenge of reversing a linked list in groups of k nodes, providing step‑by‑step explanation and a complete Java implementation.

Data StructuresJavaLinked List
0 likes · 9 min read
Tencent 2024 Campus Recruitment Salary Overview and Reverse Nodes in k‑Group Java Solution
IT Services Circle
IT Services Circle
Feb 6, 2022 · Fundamentals

Measuring Water with Two Cups: Logical Analysis and C++ Implementation

This article explains the classic water‑jug interview problem using two cups of 9 L and 15 L, derives the reachable volumes via greatest‑common‑divisor logic, and provides complete C++ code to determine feasibility and output the pouring steps for any target volume.

C++algorithmgcd
0 likes · 6 min read
Measuring Water with Two Cups: Logical Analysis and C++ Implementation
Selected Java Interview Questions
Selected Java Interview Questions
Jun 27, 2020 · Backend Development

Understanding Java Increment Operators and JVM Stack Frame Behavior

This article explains a Java interview puzzle by analyzing how the JVM stack frame handles variable assignments and increment operators, step‑by‑step showing the effects of i = i++, i = ++i, and a complex expression i + ++i * i++ on variable values.

JVMJavabackend
0 likes · 4 min read
Understanding Java Increment Operators and JVM Stack Frame Behavior
Architecture Digest
Architecture Digest
Aug 12, 2018 · Fundamentals

Understanding the “Hardest” Java Interview Question and Thread‑Safety Fundamentals

This article presents a notoriously tricky Java interview problem, walks through its multithreaded code, explains the possible outputs, and then expands into a comprehensive discussion of thread‑safety concepts, synchronization mechanisms, and best practices for writing safe concurrent Java programs.

ConcurrencyJavaMultithreading
0 likes · 14 min read
Understanding the “Hardest” Java Interview Question and Thread‑Safety Fundamentals