← All problemsSign in

2306. Naming a Company

LeetCodeArrayHash TableStringBit ManipulationEnumerationOpen on judge ↗

You are given an array of strings ideas that represents a list of names to be used in the process of naming a company. The process of naming a company is as follows: - Choose 2 distinct names from ideas, call them ideaA and ideaB. - Swap the first letters of ideaA and ideaB with each other. - If both of the new names are not found in the original ideas, then the name ideaA ideaB (the concatenat

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start