Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

harshad bhatia

@harshad bhatia
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • help in coding aprogram
    H harshad bhatia

    Write a method for calculating n C r ! , based on calculating each of the factorials (using an iterative method that does so) and combining the results appropriately can some one help me...

    Java help

  • binary search tree error compliation error
    H harshad bhatia

    this is the binary search tree class as you can see the class is developed using generics the problem coming is in testing methods when i m passing integer as two parameters i m not sure why the error is coming whereas the cast i feel is correct .... * * Variables: root : marks the root of the tree, null if empty * * Inner classes: * Node: implements each linked node. Defined as protected since only * descendant classes need to access it * Variables: key: polymorphic comparable key * item: polymorphic data in the node * left: reference to the left subtree * right: reference to the right subtree * Methods: Node(K thisKey, T thisItem) * Node(K thisKey, T thisItem, Node l, Node r) * * Public methods: boolean isEmpty() * void clear() * boolean find(T item) * void insert(T item) * void printPreOrder() * void printInOrder() * void printPostOrder() * * Input: none * * Output: only for regression testing * * Error handling: none * * Regression testing: a private testing method for each public method * except for find and for insert (since this is * asked for during the prac). */ public class BinarySearchTree<K extends Comparable<K>,T extends Comparable<T>> { // Invariants for the class (and all its descendandts): // (1) the tree is binary: all nodes have at most two children // (2) for every node n, they key at n is greater than the key of any left // descendant, and smaller than the key of any right descendant // (3) Corollary: no key appears twice in the tree protected Node root; protected class Node { protected K key; protected SortedLList<T> item; protected Node left; protected Node right; // Creates a new leaf node of the tree with the appropriate data // // precondition: none new // postcondition: a leaf node object is created with key data thisKey // and item thisItem // Best and worst case: O(1) protected Node(K thisKey, SortedLList<T> thisItem) { key = thisKey; item = thisItem; left = null; right = null;} // Creates a new node of the tree with the appropriate data and pointing // to the given left and right children no

    Java help data-structures testing beta-testing

  • java recursion problem
    H harshad bhatia

    i think i could do it now really thx for ur help......

    Java help java algorithms

  • java recursion problem
    H harshad bhatia

    yeah it is part of assignment its is like where i m struck in makin the method plz if u can help me out....

    Java help java algorithms

  • java recursion problem
    H harshad bhatia

    thx for help but my problem isnt solved yet... the method comb is required to have the parameter passed as a String not integer of arays thx in advance....

    Java help java algorithms

  • java recursion problem
    H harshad bhatia

    yeah the code is not a problem but i m actually trying to input String of digits from user and the same String should be passed to the method in the above method we are passing array of integers... please help ....how do we get to change with that....

    Java help java algorithms

  • java recursion problem
    H harshad bhatia

    hi all i am trying to implments a java method in which given a string of digits as a parameter, prints all the combinations of letters that string of digits could represent. for combination of letter we are using mobile text pad 2 is for abc,3 is for cde 123 is entered then max length of words will be 3 adg, adh, adi, aeg, aeh, aei, afg, afh, afi, bdg, bdh, bdi, beg, beh, bei, bfg, bfh, bfi, cdg, cdh, cdi, ceg, ceh, cei, cfg, cfh, or cfi. The 1 can be a, b or c The 2 can be d, e or f the 3 can be g, h or i this method is to be implemted using recursion i m totally confused where to start of with can anyone help me with some algorithm of code ....

    Java help java algorithms
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups