C# Coding Questions

General

  • 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

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 Tree
  • Insert a Node to Binary Search Tree
  • Tree Traversal – InOrder
  • Tree Traversal – PreOrder
  • Tree Traversal – PostOrder
  • Find the height of a Binary Tree
  • Find if a given Tree is Binary Search Tree
  • Breadth First Tree Traversal

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s