Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~181 People Reached
Favorite Forums
Favorite Tags
java x 5
Member Avatar for jury

can any one help with to design a recursive algorithm to compute the integer part of lgn using only addition and integer division.

Member Avatar for NormR1
0
44
Member Avatar for jury

hy!!!!i am trying to write a java code that returns the majority element in an array and -1 if not!!this is what i came with public class Majority{ public static int arrMajority1(int A[]){ int n = A.length; int c = 1; for(int i=0;i>A.length;i++){ for(int j=i+1;j<A.length;j++) if (A[i]==A[j]) c=c+1; if (c>(A.length/2)){ …

Member Avatar for Nutster
0
137