---
title: "Surya (@surya009) | Hashnode"
description: "Full stack developer @Domaincer. Read the latest articles by Surya on Hashnode."
url: "https://hashnode.com/@surya009"
---

@surya009

# Surya

@surya009 · India · Joined December 2023

Full stack developer @Domaincer

### [Two Sum II - Input Array Is Sorted Using Two Pointers](https://suryasun.hashnode.dev/two-sum-ii-input-array-is-sorted-using-two-pointers?utm_source=hashnode&utm_medium=feed)

var twoSum = function (numbers, target) { let \[start, end\] = \[0, numbers.length - 1\]; while (start < end) { const currentSum = numbers\[start\] + numbers\[end\]; const isTarget = currentSum === target; if (isTarget) { ...

1 min read · [suryasun.hashnode.dev](https://suryasun.hashnode.dev/two-sum-ii-input-array-is-sorted-using-two-pointers?utm_source=hashnode&utm_medium=feed)

[Jan 3, 2024](https://hashnode.com/posts/two-sum-ii-input-array-is-sorted-using-two-pointers/6594cdb20589b45107013593)

### [Anagram](https://suryasun.hashnode.dev/anagram?utm_source=hashnode&utm_medium=feed)

what is Anagram ? A word, phrase, or name formed by rearranging the letters of another, such as spar, formed from rasp. solution : Hash Map : const contacts = new Map(); contacts.set("Jessie", { phone: "213-555-1234", address: "123 N 1st Ave" }); con...

1 min read · [suryasun.hashnode.dev](https://suryasun.hashnode.dev/anagram?utm_source=hashnode&utm_medium=feed)

[Jan 2, 2024](https://hashnode.com/posts/anagram/65937bbef6cff3a8e49b391c)

### [1.Contains Duplicate](https://suryasun.hashnode.dev/contains-duplicate?utm_source=hashnode&utm_medium=feed)

Leet code question Example 1: Input: nums = \[1,2,3,1\] Output: true Example 2: Input: nums = \[1,2,3,4\] Output: false Example 3: // code function containsDuplicate(nums){ // creating set using nums const isDuplicate=new Set(nums); ...

1 min read · [suryasun.hashnode.dev](https://suryasun.hashnode.dev/contains-duplicate?utm_source=hashnode&utm_medium=feed)

[Dec 28, 2023](https://hashnode.com/posts/contains-duplicate/658ceaf33e4333d4552308f7)
