Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

7 votes
Accepted

Create an address self-complete bar

A few things you can improve: Use const instead var Don't use any as type Move ...
m.rufca's user avatar
  • 208
0 votes

Pairs with Specific Difference python

I would try to optimize by iterating through the list while adding to the set at the same time rather than building a set separately. See my answer below: ...
Aaron Nickovich's user avatar
4 votes

Leetcode - First Unique Character in a String

Pay attention to Constraints While cracking algorithmic problems, pay very close attention to the constraints of the problem at hand. They can often give valuable clues on how to attack the problem. ...
Alexander Ivanchenko's user avatar
-2 votes

Leetcode - First Unique Character in a String

In Java Use the FirstIndexOf() and LastIndexOf() if these both return the same number then its the unique character in the statring of the string return the index of it break the loop. This is the ...
Ajay Shankar's user avatar
4 votes
Accepted

String character changes (case insensitive) - Go

A few comments. Simple is good. strchange.go: ...
peterSO's user avatar
  • 3,531

Top 50 recent answers are included