Results 1 to 18 of 18

Thread: fdsafwdg

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    fdsafwdg

    gregergegergre3rg

  2. #2
    Banned Psychopathetica's Avatar
    Join Date
    Jan 2005
    Posts
    31

    Re: fdsafwdg

    TeachNoteMeHowToSpeakEnglish

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: fdsafwdg

    *slap*
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: fdsafwdg

    bgrehy5hjw5y
    Code:
    [object Object]
    Code:
    bgrehy5hjw5y
    Code:
    [object Object]

  5. #5

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: fdsafwdg

    c++:

    Code:
    import java.util.*;
    
    class CircleDance
    {
    	
    	public int arrangeDancers(int[] heights)
    	{
    		int[] lowestSoFar = heights;
    		Collections.reverse(Arrays.asList(heights));
    		if (heights.length == 3)
    		{
    			return heights[heights.length-1] - heights[0];
    		}
    		int maxDifference = heights[heights.length-1]-heights[0];
    		
    		int temp;
    		int temp2;
    		for (int back=heights.length-1; back>=0; back--)
    		{
    			for(int front=0; front<heights.length; front++)
    			{
    				if (front == heights.length-1)
    				{
    					if (heights[front] > heights[0])
    					{
    						temp = heights[front];
    						temp2 = heights[0];
    						heights[front] = temp2;
    						heights[0] = temp;
    					}
    				}
    				else if (front < heights.length-1)
    				{		
    					if (heights[front] > heights[front+1])
    					{
    						temp = heights[front];
    						temp2 = heights[front+1];
    						heights[front] = temp2;
    						heights[front+1] = temp;
    						for (int i=0; i<heights.length; i++)
    						{
    							if (i == heights.length-1)
    							{
    								if ((heights[i]+heights[0]) < maxDifference)
    								{
    									maxDifference = heights[i] + heights[0];
    								}
    							}
    							else if (i < heights.length-1)
    							{
    								if ((heights[i] + heights[i+1]) < maxDifference)
    								{
    									maxDifference = heights[i] + heights[i+1];
    								}
    							}
    						}
    						if ((heights[0] + heights[heights.length-1]) < maxDifference)
    						{
    							maxDifference = heights[0] + heights[heights.length-1];
    						}
    					}
    				}
    			}
    		}
    		return maxDifference;
    	}
    	
    	public static void main(String[] args)
    	{
    		int[] d = {170,180,190};
    		CircleDance cd = new CircleDance();
    		System.out.println(cd.arrangeDancers(d));
    	}
    }

  6. #6

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: fdsafwdg

    java:

    Code:
    import java.util.*;
    
    class CircleDance
    {
    	
    	public int arrangeDancers(int[] heights)
    	{
    		int[] lowestSoFar = heights;
    		Collections.reverse(Arrays.asList(heights));
    		if (heights.length == 3)
    		{
    			return heights[heights.length-1] - heights[0];
    		}
    		int maxDifference = heights[heights.length-1]-heights[0];
    		
    		int temp;
    		int temp2;
    		for (int back=heights.length-1; back>=0; back--)
    		{
    			for(int front=0; front<heights.length; front++)
    			{
    				if (front == heights.length-1)
    				{
    					if (heights[front] > heights[0])
    					{
    						temp = heights[front];
    						temp2 = heights[0];
    						heights[front] = temp2;
    						heights[0] = temp;
    					}
    				}
    				else if (front < heights.length-1)
    				{		
    					if (heights[front] > heights[front+1])
    					{
    						temp = heights[front];
    						temp2 = heights[front+1];
    						heights[front] = temp2;
    						heights[front+1] = temp;
    						for (int i=0; i<heights.length; i++)
    						{
    							if (i == heights.length-1)
    							{
    								if ((heights[i]+heights[0]) < maxDifference)
    								{
    									maxDifference = heights[i] + heights[0];
    								}
    							}
    							else if (i < heights.length-1)
    							{
    								if ((heights[i] + heights[i+1]) < maxDifference)
    								{
    									maxDifference = heights[i] + heights[i+1];
    								}
    							}
    						}
    						if ((heights[0] + heights[heights.length-1]) < maxDifference)
    						{
    							maxDifference = heights[0] + heights[heights.length-1];
    						}
    					}
    				}
    			}
    		}
    		return maxDifference;
    	}
    	
    	public static void main(String[] args)
    	{
    		int[] d = {170,180,190};
    		CircleDance cd = new CircleDance();
    		System.out.println(cd.arrangeDancers(d));
    	}
    }

  7. #7

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: fdsafwdg

    mytest, he said with a hope in his voice:

    import java.util.*;

    class
    CircleDance
    {


    public
    int arrangeDancers(int[] heights)
    {

    int
    [] lowestSoFar = heights;
    Collections.reverse(Arrays.asList(heights));
    if
    (heights.length == 3)
    {

    return
    heights[heights.length-1] - heights[0];
    }

    int
    maxDifference = heights[heights.length-1]-heights[0];

    int
    temp;
    int
    temp2;
    for
    (int back=heights.length-1; back>=0; back--)
    {

    for
    (int front=0; front<heights.length; front++)
    {

    if
    (front == heights.length-1)
    {

    if
    (heights[front] > heights[0])
    {

    temp = heights[front];
    temp2 = heights[0];
    heights[front] = temp2;
    heights[0] = temp;
    }
    }

    else if
    (front < heights.length-1)
    {

    if
    (heights[front] > heights[front+1])
    {

    temp = heights[front];
    temp2 = heights[front+1];
    heights[front] = temp2;
    heights[front+1] = temp;
    for
    (int i=0; i<heights.length; i++)
    {

    if
    (i == heights.length-1)
    {

    if
    ((heights[i]+heights[0]) < maxDifference)
    {

    maxDifference = heights[i] + heights[0];
    }
    }

    else if
    (i < heights.length-1)
    {

    if
    ((heights[i] + heights[i+1]) < maxDifference)
    {

    maxDifference = heights[i] + heights[i+1];
    }
    }
    }

    if
    ((heights[0] + heights[heights.length-1]) < maxDifference)
    {

    maxDifference = heights[0] + heights[heights.length-1];
    }
    }
    }
    }
    }

    return
    maxDifference;
    }


    public static
    void main(String[] args)
    {

    int
    [] d = {170,180,190};
    CircleDance cd = new CircleDance();
    System.out.println(cd.arrangeDancers(d));
    }
    }

  8. #8
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: fdsafwdg

    Code:
    import java.util.*;
    
    class CircleDance
    {
    	
    	public int arrangeDancers(int[] heights)
    	{
    		int[] lowestSoFar = heights;
    		Collections.reverse(Arrays.asList(heights));
    		if (heights.length == 3)
    		{
    			return heights[heights.length-1] - heights[0];
    		}
    		int maxDifference = heights[heights.length-1]-heights[0];
    		
    		int temp;
    		int temp2;
    		for (int back=heights.length-1; back>=0; back--)
    		{
    			for(int front=0; front<heights.length; front++)
    			{
    				if (front == heights.length-1)
    				{
    					if (heights[front] > heights[0])
    					{
    						temp = heights[front];
    						temp2 = heights[0];
    						heights[front] = temp2;
    						heights[0] = temp;
    					}
    				}
    				else if (front < heights.length-1)
    				{		
    					if (heights[front] > heights[front+1])
    					{
    						temp = heights[front];
    						temp2 = heights[front+1];
    						heights[front] = temp2;
    						heights[front+1] = temp;
    						for (int i=0; i<heights.length; i++)
    						{
    							if (i == heights.length-1)
    							{
    								if ((heights[i]+heights[0]) < maxDifference)
    								{
    									maxDifference = heights[i] + heights[0];
    								}
    							}
    							else if (i < heights.length-1)
    							{
    								if ((heights[i] + heights[i+1]) < maxDifference)
    								{
    									maxDifference = heights[i] + heights[i+1];
    								}
    							}
    						}
    						if ((heights[0] + heights[heights.length-1]) < maxDifference)
    						{
    							maxDifference = heights[0] + heights[heights.length-1];
    						}
    					}
    				}
    			}
    		}
    		return maxDifference;
    	}
    	
    	public static void main(String[] args)
    	{
    		int[] d = {170,180,190};
    		CircleDance cd = new CircleDance();
    		System.out.println(cd.arrangeDancers(d));
    	}
    }
    Here is java now. Or do you want me to base the color from Cander's original?

  9. #9
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: fdsafwdg

    You could copy the PHP higghlighting
    PHP Code:
    $var 1;
    $string 'string';
    $string1 "string\r\n";

    /* comment */
    // comment

    function name ($param1$param2) {
        if (
    $param1 == 1) {
            echo(
    'name');
        }
      
        return;

    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  10. #10
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: fdsafwdg

    Ok, I'll try. Just can't promise much. But I'll try.

  11. #11
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: fdsafwdg

    You are very smart - I have faith in your abilities
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  12. #12
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: fdsafwdg

    Haha. That's funny. I've never heard one of those since 10.

    Edit: We'll also be expecting your Delphi syntax highlighter.

  13. #13
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: fdsafwdg

    Get to work - *whip*whip*
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  14. #14

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: fdsafwdg

    Test 1
    Test2
    Test3
    Last edited by NoteMe; Jun 22nd, 2005 at 02:32 AM.

  15. #15

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: fdsafwdg

    Indent test in quote tag:


    function name ($param1, $param2) {
    if ($param1 == 1) {
    echo('name');
    }
    }

  16. #16

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: fdsafwdg

    normal


    test 1test 1
    test 2test 2
    test 3test 3
    test 4test 4
    test 5test 5
    test 6test 6
    test 7test 7

  17. #17

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: fdsafwdg

    1. grw
    2. greg
    3. greag
    4. greag4r

  18. #18

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: fdsafwdg

    123456789123456789
    123456789,,,,,,,,,
    123456789123,,,,,,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width