• 1. Two Sum
  • 9. Palindrome Number
  • 13. Roman to Integer
  • 14. Longest Common Prefix
  • 20. Valid Parentheses
  • 21. Merge Two Sorted Lists
  • 26. Remove Duplicates from Sorted Array
  • 27. Remove Element
  • 28. Find the Index of the First Occurrence in a String
  • 35. Search Insert Position
  • 58. Length of Last Word
  • 66. Plus One
  • 67. Add Binary
  • 69. Sqrt(x)
  • 70. Climbing Stairs
  • 83. Remove Duplicates from Sorted List
  • 88. Merge Sorted Array
Open in LeetCode
function c(e,t){for(var n=[],a=[],r=function(r){var i=n.find((function(n){return n[0]===t-e[r]}));if(i)return a.push(i[1]),a.push(r),"break";n.push([e[r],r])},i=0;i<e.length;i++){if("break"===r(i))break}return a}
Result: [0,2]
GitHub