Code Monkey home page Code Monkey logo

dharmendrarathor.github.io's Introduction

Programming questions and solutions

BASIC

  • Fibonacci Series - 1. Using loop.  2. Using recursion.  3. Using memoization.(Technique to improve speed of computation by storing complex calculation results)
  • PrimeNumber- Prime number is number which is only divisible by 1 and itself. eg : 2,3, 5, 7 , 11..
  • Palindrome - Palindrome is word, number which is same forward and backword. eg 45654,abcba is palindrome eg 45655,abcbb is not palindorme.
  • Duplicate element in Array -  Program to find duplicate element in array in O(n) time and fixed space complexity.  
  • Highest frequency element in array - Program to find highest frequency element in array using two approach with complexity O nlogn and O n .  
  • Unique character in String - Program to find String has unique char or not.
  • SetBitCount - Program to find count of set bit in positive integer.

TREES 

LINK LIST  

  • Middle element in Link List -Finding middle element in a linked list using two pointer approach.
  • Remove Duplicate in List -Remove duplicate element from Linked List Given a singly linked list consisting of N nodes. The task is to remove duplicates (nodes with duplicate values) from the given list (if exists)..
  • Find Nth Element from End -Nth node from end of linked list. Given a linked list consisting of L nodes and given a number N. The task is to find the Nth node from the end of the linked list.
  • Reverse list in group of given size -Given a linked list of size N. The task is to reverse every k nodes (where k is an input to the function) in the linked list.
  • Length of loop in link list - Program to find length of loop in link list.

ARRAYS  

  • Highest frequence In Array -Program to find element in array having highest frequency. Two approaches One * with time complexity O(n log n) and other o(n).
  • Peek element in Array -Given an array A of integers. The task is to find a peak element in it. An array element is peak if it is not smaller than its neighbors. For corner elements, we need to consider only one neighbor.
  • ReverseWordInString -Given a String of length N reverse each word in it. Words are separated by dots. " Input : i.like.this.program.very.much Output : i.ekil.siht.margorp.yrev.hcum " .

CUSTOM DATA STRUCTURE 

  • Queue Using Two Stacks -Implement a Queue using 2 stacks s1 and s2 .
  • Special Stack - Design a data-structure SpecialStack (using the STL of stack) that supports all the stack operations like push(), pop(), isEmpty(), isFull() and anadditional operation getMin() which should return minimum element from the SpecialStack. Your task is to complete all the functions, using stack.

STRINGS  

 

 

 

      

 

dharmendrarathor.github.io's People

Contributors

dharmendrarathor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.