This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Vmware { | |
public static void main(String[] args) { | |
int[] a= new int[args.length]; | |
for (int i=0;i<args.length; i++){ | |
a[i]= Integer.parseInt(args[i]); | |
} | |
int maxnum=flip(a); | |
System.out.println(maxnum); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are given an integer array with N elements: d[0], d[1], ... d[N - 1]. | |
You can perform AT MOST one move on the array: choose any two integers [L, R], and flip all the elements between (and including) the L-th and R-th bits. L and R represent the left-most and right-most index of the bits marking the boundaries of the segment which you have decided to flip. | |
What is the maximum number of '1'-bits (indicated by S) which you can obtain in the final bit-string? | |
'Flipping' a bit means, that a 0 is transformed to a 1 and a 1 is transformed to a 0 (0->1,1->0). | |
Input Format | |
An integer N | |
Next line contains the N bits, separated by spaces: d[0] d[1] ... d[N - 1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326 | |
-product | |
org.eclipse.epp.package.standard.product | |
--launcher.defaultAction | |
openFile | |
--launcher.XXMaxPermSize | |
256M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-vm | |
C:\Program Files\Java\jdk1.7.0_71\bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326 | |
-product | |
org.eclipse.epp.package.standard.product | |
--launcher.defaultAction | |
openFile | |
--launcher.XXMaxPermSize | |
256M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /path/to/jre1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo updatedb | |
sudo locate -b '\pack200' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for g in ControlPanel java java_vm javaws jcontrol jexec keytool mozilla-javaplugin.so orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200 appletviewer apt extcheck HtmlConverter idlj jar jarsigner javac javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc xulrunner-1.9-javaplugin.so; do sudo update-alternatives --remove-all $g; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /usr/lib/jvm/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo bash -c 'ls -d /home/*/.java' | xargs sudo rm -rf |
NewerOlder