C# Coding Questions

General

  • Write a method to return sum of n number (from 1 to n) for a given integer input n, without using a mathematical formula
  • Write a class of which only 5 objects can be created
  • Find the first longest even word in string
  • Write a program to print all permutations of a given string
  • Find MAX repeated item in the list
  • MAX repeated item in the list

Single LinkedList

  • Create a LinkedList
  • Add Node or Insert Node at tail
  • Insert a Node at Head
  • Insert a Node at nth position
  • Delete Node from nth position
  • Delete Node having a particular value
  • Print all nodes (using recursion)
  • Print all nodes (without using recursion)
  • Print all nodes in reverse order
  • Print Node at nth position from end
  • Reverse a linked list
  • Delete duplicate-value nodes from a sorted linked list

Binary Tree

  • Create a Binary Search Tree
  • Insert a Node to Binary Search Tree
  • Tree Traversal – InOrder
  • Tree Traversal – PreOrder
  • Tree Traversal – PostOrder
  • Find the height of a Binary Search Tree
  • Find if a given Tree is Binary Search Tree
  • Breadth First Tree Traversal
  • Sorted Array to Balanced BST

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s