Search:

Type: Posts; User: prarthnasahu@gmail.com

Search: Search took 0.12 seconds.

  1. Re: Identify maximum distance element from String array

    Array = [‘C++’, ‘Java’, ‘C#’, ‘C#’, ‘Java’, ‘Python’, ‘C#’, ‘Java’]

    Steps:

    1. Find the maximum occurrence of the element; in this case, we have 2 elements Java and C# they have maximum...
  2. Re: Identify maximum distance element from String array

    With this code, I can find the difference in index position but couldn't catch the value.


    public class mstry {

    public static void main (String[] args){
    String[] a ={"C++", "Java", "C#",...
  3. Identify maximum distance element from String array

    I have a requirement where I have to find an element from an array that has maximum distance in occurrence.

    If there are two terms that were equally searched, the return term has the longest...
Results 1 to 3 of 3