Tagged: Beginner

1

Singly Linked List Implementation

Linked List- As the name suggests it’s a list which is linked. Linked List consist of Nodes Nodes are nothing but objects of a class and each node has data and a link to...

1

Find a pair of numbers from an array whose sum equals k

Objective: Write an algorithm to find out whether in a given array there exists or not two numbers whose sum is exactly equals to a given number. This problem has been asked in Amazon...

3

Find Whether Given String is palindrome or Not.

Objective : Write an algorithm to find Whether Given String is palindrome or Not. Input:  A String, Output: true or false on whether string is palindrome or not Approach: Use recursive approach Compare first...

1

Find two Missing Numbers in a Sequence of Consecutive Numbers

Objective : Write an algorithm to find two Missing Numbers in a Sequence of Consecutive Numbers Input:  Array, arrA[] with two missing numbers and Range Output : Two missing numbers Approach: Approach is very...

0

Hash Table Implementation

Objective : To implement a Hash Table Input:  A set of pairs of keys and values Approach: Create a Hash Table Hashtable<Integer, String> ht = new Hashtable<Integer, String>(); Insert values in hash table using...

2

Binary Search

Objective : Write an algorithm to find an element in an sorted array Input: A sorted array, arrA[] and an key Output : Return true if element is found, else false. Approach: The idea...

%d bloggers like this: