Many quality of code changes

Removing unused imports, cleaning up (at a base level) code, and removing some package declarations. By no means did I get all of them.
This commit is contained in:
Kenneth Nero 2017-10-26 19:56:18 -04:00
parent a0fd638b2a
commit 2a1fc02648
18 changed files with 954 additions and 24 deletions

6
.idea/misc.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/classes" />
</component>
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Java.iml" filepath="$PROJECT_DIR$/Java.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

908
.idea/workspace.xml Normal file
View File

@ -0,0 +1,908 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="396bde20-66be-49cd-b559-82d1e6a01104" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Dynamic Programming/Levenshtein_distance.java" afterPath="$PROJECT_DIR$/Dynamic Programming/Levenshtein_distance.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Dynamic Programming/rod_cutting.java" afterPath="$PROJECT_DIR$/Dynamic Programming/rod_cutting.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Others/Abecedarian.java" afterPath="$PROJECT_DIR$/Others/Abecedarian.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Others/Dijkshtra.java" afterPath="$PROJECT_DIR$/Others/Dijkshtra.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Others/Factorial.java" afterPath="$PROJECT_DIR$/Others/Factorial.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Others/FloydTriangle.java" afterPath="$PROJECT_DIR$/Others/FloydTriangle.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Others/ReverseStackUsingRecursion.java" afterPath="$PROJECT_DIR$/Others/ReverseStackUsingRecursion.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Others/ReverseString.java" afterPath="$PROJECT_DIR$/Others/ReverseString.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Others/krishnamurthy.java" afterPath="$PROJECT_DIR$/Others/krishnamurthy.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Others/root_precision.java" afterPath="$PROJECT_DIR$/Others/root_precision.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Sorts/radixSort.java" afterPath="$PROJECT_DIR$/Sorts/radixSort.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/data_structures/Graphs/PrimMST.java" afterPath="$PROJECT_DIR$/data_structures/Graphs/PrimMST.java" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/data_structures/HashMap/HashMap.java" afterPath="$PROJECT_DIR$/data_structures/HashMap/HashMap.java" />
</list>
<ignored path="$PROJECT_DIR$/bin/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="InsertionSort.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Sorts/InsertionSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="6" column="6" lean-forward="false" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="HeapSort.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Sorts/HeapSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="9" column="13" lean-forward="false" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="MergeSort.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Sorts/MergeSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1480">
<caret line="6" column="6" lean-forward="false" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="QuickSort.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Sorts/QuickSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1986">
<caret line="6" column="6" lean-forward="false" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="radixSort.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Sorts/radixSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-546">
<caret line="14" column="52" lean-forward="true" selection-start-line="14" selection-start-column="52" selection-end-line="14" selection-end-column="52" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="SelectionSort.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Sorts/SelectionSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="6" column="13" lean-forward="false" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="ShellSort.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Sorts/ShellSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-946">
<caret line="5" column="13" lean-forward="false" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Caesar.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/ciphers/Caesar.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-2866">
<caret line="7" column="13" lean-forward="false" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="ColumnarTranspositionCipher.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/ciphers/ColumnarTranspositionCipher.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-4760">
<caret line="10" column="13" lean-forward="true" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="RSA.java" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/ciphers/RSA.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="280">
<caret line="8" column="13" lean-forward="false" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="GradleLocalSettings">
<option name="externalProjectsViewState">
<projects_view />
</option>
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/data_structures/Graphs/PrimMST.java" />
<option value="$PROJECT_DIR$/data_structures/HashMap/HashMap.java" />
<option value="$PROJECT_DIR$/Dynamic Programming/Levenshtein_distance.java" />
<option value="$PROJECT_DIR$/Dynamic Programming/rod_cutting.java" />
<option value="$PROJECT_DIR$/Others/Abecedarian.java" />
<option value="$PROJECT_DIR$/Others/Dijkshtra.java" />
<option value="$PROJECT_DIR$/Others/Factorial.java" />
<option value="$PROJECT_DIR$/Others/FloydTriangle.java" />
<option value="$PROJECT_DIR$/Others/krishnamurthy.java" />
<option value="$PROJECT_DIR$/Others/ReverseStackUsingRecursion.java" />
<option value="$PROJECT_DIR$/Others/ReverseString.java" />
<option value="$PROJECT_DIR$/Others/root_precision.java" />
<option value="$PROJECT_DIR$/Sorts/BinaryTreeSort.java" />
<option value="$PROJECT_DIR$/Sorts/radixSort.java" />
</list>
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="262" />
<option name="width" value="1400" />
<option name="height" value="1000" />
</component>
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="2" id="Add" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
<manualOrder />
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="ciphers" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Dynamic Programming" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Dynamic Programming" type="462c0819:PsiDirectoryNode" />
<item name="rod_cutting.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Others" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Others" type="462c0819:PsiDirectoryNode" />
<item name="countwords.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Others" type="462c0819:PsiDirectoryNode" />
<item name="Dijkshtra.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Others" type="462c0819:PsiDirectoryNode" />
<item name="Huffman.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Others" type="462c0819:PsiDirectoryNode" />
<item name="insert_delete_in_array.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Others" type="462c0819:PsiDirectoryNode" />
<item name="QueueUsingTwoStacks.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Others" type="462c0819:PsiDirectoryNode" />
<item name="root_precision.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Others" type="462c0819:PsiDirectoryNode" />
<item name="StackPostfixNotation.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Others" type="462c0819:PsiDirectoryNode" />
<item name="TowerOfHanoiUsingRecursion.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Searches" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Searches" type="462c0819:PsiDirectoryNode" />
<item name="interpolationSearch.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Sorts" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Sorts" type="462c0819:PsiDirectoryNode" />
<item name="BinaryTreeSort.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
<path>
<item name="Java" type="b2602c69:ProjectViewProjectNode" />
<item name="Java" type="462c0819:PsiDirectoryNode" />
<item name="Sorts" type="462c0819:PsiDirectoryNode" />
<item name="radixSort.java" type="529ef68f:ClassesTreeStructureProvider$PsiClassOwnerTreeNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scope" />
<pane id="Scratches" />
<pane id="AndroidView" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="project.structure.last.edited" value="Project" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.0" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager">
<configuration default="true" type="Applet" factoryName="Applet">
<option name="HTML_USED" value="false" />
<option name="WIDTH" value="400" />
<option name="HEIGHT" value="300" />
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
<module />
</configuration>
<configuration default="true" type="Application" factoryName="Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="" />
<envs />
</configuration>
<configuration default="true" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<module name="" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="TEST_OBJECT" value="class" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<envs />
<patterns />
</configuration>
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
<module name="" />
<option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
<option name="PROGRAM_PARAMETERS" />
<predefined_log_file id="idea.log" enabled="true" />
</configuration>
<configuration default="true" type="Remote" factoryName="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
<option name="SHMEM_ADDRESS" value="javadebug" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5005" />
</configuration>
<configuration default="true" type="TestNG" factoryName="TestNG">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<module name="" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="SUITE_NAME" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="GROUP_NAME" />
<option name="TEST_OBJECT" value="CLASS" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<option name="OUTPUT_DIRECTORY" />
<option name="ANNOTATION_TYPE" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<option name="USE_DEFAULT_REPORTERS" value="false" />
<option name="PROPERTIES_FILE" />
<envs />
<properties />
<listeners />
</configuration>
</component>
<component name="SbtLocalSettings">
<option name="externalProjectsViewState">
<projects_view />
</option>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="396bde20-66be-49cd-b559-82d1e6a01104" name="Default" comment="" />
<created>1509061173668</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1509061173668</updated>
</task>
<servers />
</component>
<component name="ToolWindowManager">
<frame x="-16" y="-16" width="3872" height="2092" extended-state="6" />
<layout>
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
<window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="combo" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="7" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
<option name="time" value="2" />
</breakpoint-manager>
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/Dynamic Programming/Knapsack.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="9" column="4" lean-forward="true" selection-start-line="9" selection-start-column="4" selection-end-line="9" selection-end-column="4" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Dynamic Programming/Levenshtein_distance.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="320">
<caret line="8" column="34" lean-forward="true" selection-start-line="8" selection-start-column="34" selection-end-line="8" selection-end-column="34" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Dynamic Programming/LongestCommonSubsequence.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1066">
<caret line="1" column="0" lean-forward="true" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Dynamic Programming/LongestIncreasingSubsequence.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-666">
<caret line="7" column="13" lean-forward="false" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Dynamic Programming/rod_cutting.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="11" column="11" lean-forward="true" selection-start-line="11" selection-start-column="11" selection-end-line="11" selection-end-column="11" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/Abecedarian.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="400">
<caret line="11" column="0" lean-forward="true" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/Armstrong.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="254">
<caret line="15" column="21" lean-forward="false" selection-start-line="15" selection-start-column="21" selection-end-line="15" selection-end-column="21" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/CountChar.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="174">
<caret line="10" column="13" lean-forward="false" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/countwords.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="9" column="8" lean-forward="false" selection-start-line="9" selection-start-column="8" selection-end-line="9" selection-end-column="8" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/crc32.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="3" column="13" lean-forward="false" selection-start-line="3" selection-start-column="13" selection-end-line="3" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/Dijkshtra.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="214">
<caret line="29" column="36" lean-forward="true" selection-start-line="29" selection-start-column="36" selection-end-line="29" selection-end-column="36" />
<folding>
<element signature="e#0#2161#0" expanded="true" />
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/Factorial.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="14">
<caret line="12" column="22" lean-forward="true" selection-start-line="12" selection-start-column="22" selection-end-line="12" selection-end-column="22" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/FibToN.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="80">
<caret line="2" column="13" lean-forward="false" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/FindingPrimes.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="294">
<caret line="12" column="7" lean-forward="true" selection-start-line="12" selection-start-column="7" selection-end-line="12" selection-end-column="7" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/FloydTriangle.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="25" lean-forward="false" selection-start-line="0" selection-start-column="25" selection-end-line="0" selection-end-column="25" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/GCD.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="3" column="11" lean-forward="false" selection-start-line="3" selection-start-column="11" selection-end-line="3" selection-end-column="11" />
<folding>
<element signature="e#0#291#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/Huffman.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-2426">
<caret line="60" column="0" lean-forward="true" selection-start-line="60" selection-start-column="0" selection-end-line="60" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/insert_delete_in_array.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="640">
<caret line="16" column="50" lean-forward="true" selection-start-line="16" selection-start-column="50" selection-end-line="16" selection-end-column="50" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/KMP.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-386">
<caret line="8" column="13" lean-forward="false" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/krishnamurthy.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="40">
<caret line="1" column="0" lean-forward="false" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/LinearCongruentialGenerator.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-546">
<caret line="6" column="13" lean-forward="false" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/LowestBasePalindrome.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-3786">
<caret line="12" column="3" lean-forward="true" selection-start-line="12" selection-start-column="3" selection-end-line="12" selection-end-column="3" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/Node.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="13" lean-forward="false" selection-start-line="0" selection-start-column="13" selection-end-line="0" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/Palindrome.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="6" lean-forward="false" selection-start-line="0" selection-start-column="6" selection-end-line="0" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/QueueUsingTwoStacks.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2880">
<caret line="74" column="13" lean-forward="false" selection-start-line="74" selection-start-column="13" selection-end-line="74" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/removeDuplicateFromString.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="54">
<caret line="9" column="13" lean-forward="false" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/ReturnSubsequence.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-174">
<caret line="18" column="13" lean-forward="false" selection-start-line="18" selection-start-column="13" selection-end-line="18" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/ReverseStackUsingRecursion.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1374">
<caret line="67" column="5" lean-forward="false" selection-start-line="67" selection-start-column="5" selection-end-line="67" selection-end-column="5" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/ReverseString.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1014">
<caret line="34" column="69" lean-forward="false" selection-start-line="34" selection-start-column="69" selection-end-line="34" selection-end-column="69" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/root_precision.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/SieveOfEratosthenes.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="200">
<caret line="5" column="13" lean-forward="false" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/StackPostfixNotation.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="680">
<caret line="17" column="33" lean-forward="true" selection-start-line="17" selection-start-column="33" selection-end-line="17" selection-end-column="33" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Others/TowerOfHanoiUsingRecursion.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="80">
<caret line="2" column="6" lean-forward="false" selection-start-line="2" selection-start-column="6" selection-end-line="2" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Searches/BinarySearch.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1026">
<caret line="8" column="6" lean-forward="false" selection-start-line="8" selection-start-column="6" selection-end-line="8" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Searches/interpolationSearch.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-586">
<caret line="1" column="6" lean-forward="false" selection-start-line="1" selection-start-column="6" selection-end-line="1" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Searches/LinearSearch.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1226">
<caret line="9" column="13" lean-forward="false" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Searches/TernarySearch.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1266">
<caret line="2" column="13" lean-forward="false" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/BinaryTreeSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="3" column="13" lean-forward="false" selection-start-line="3" selection-start-column="13" selection-end-line="3" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/BubbleSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-955">
<caret line="6" column="6" lean-forward="false" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/CocktailShakerSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1666">
<caret line="7" column="6" lean-forward="false" selection-start-line="7" selection-start-column="6" selection-end-line="7" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/CountingSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1706">
<caret line="10" column="6" lean-forward="false" selection-start-line="10" selection-start-column="6" selection-end-line="10" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/InsertionSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="6" column="6" lean-forward="false" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/HeapSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="9" column="13" lean-forward="false" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/MergeSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1480">
<caret line="6" column="6" lean-forward="false" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/QuickSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1986">
<caret line="6" column="6" lean-forward="false" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/radixSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-546">
<caret line="14" column="52" lean-forward="true" selection-start-line="14" selection-start-column="52" selection-end-line="14" selection-end-column="52" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/SelectionSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="6" column="13" lean-forward="false" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Sorts/ShellSort.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-946">
<caret line="5" column="13" lean-forward="false" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ciphers/Caesar.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-2866">
<caret line="7" column="13" lean-forward="false" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ciphers/ColumnarTranspositionCipher.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-4760">
<caret line="10" column="13" lean-forward="true" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/ciphers/RSA.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="280">
<caret line="8" column="13" lean-forward="false" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
<folding />
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
<state key="GlobalLibrariesConfigurable.UI">
<settings>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="JdkListConfigurable.UI">
<settings>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ProjectLibrariesConfigurable.UI">
<settings>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>

View File

@ -17,8 +17,8 @@ public class Levenshtein_distance{
}
}
private static int calculate_distance(String a, String b){
len_a = a.length() + 1;
len_b = b.length() + 1;
int len_a = a.length() + 1;
int len_b = b.length() + 1;
int [][] distance_mat = new int[len_a][len_b];
for(int i = 0; i < len_a; i++){
distance_mat[i][0] = i;

View File

@ -2,8 +2,7 @@
Returns the best obtainable price for a rod of
length n and price[] as prices of different pieces */
public class RodCutting
{
public class RodCutting {
private static int cutRod(int price[],int n)
{

13
Java.iml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/bin" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/data_structures" isTestSource="false" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="inheritedJdk" />
</component>
</module>

View File

@ -12,6 +12,6 @@ class Abecedarian{
else{return false;}
}
}
return true;
}
}

View File

@ -4,6 +4,11 @@
*/
import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
import java.util.Stack;
public class Solution {
public static void main(String[] args) throws IOException {
@ -30,7 +35,7 @@ public static void main(String[] args) throws IOException {
//Implementing Dijkshtra's Algorithm
Stack <Integer> t=new Stack<Integer>();
Stack<Integer> t=new Stack<Integer>();
int src=in.nextInt();
for(int i=1;i<=n;i++){
if(i!=src){t.push(i);}}

View File

@ -1,4 +1,3 @@
package factorial;
import java.util.Scanner;
/**

View File

@ -1,6 +1,5 @@
import java.util.Scanner;
public class FloydTriangle {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);

View File

@ -67,8 +67,4 @@ public class ReverseStackUsingRecursion {
}
}

View File

@ -39,7 +39,7 @@ class ReverseString
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the string");
String srr=br.readLine();
System.out.println("Reverse="+reverseString(srr));
System.out.println("Reverse="+reverse(srr));
br.close();
}
}

View File

@ -1,4 +1,5 @@
import java.util.Scanner;
class krishnamurthy
{
int fact(int n)

View File

@ -1,8 +1,4 @@
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {

View File

@ -1,5 +1,3 @@
import java.io.*;
import java.util.*;
class Radix {

View File

@ -1,9 +1,7 @@
// A Java program for Prim's Minimum Spanning Tree (MST) algorithm.
//adjacency matrix representation of the graph
import java.util.*;
import java.lang.*;
import java.io.*;
class PrimMST
{

View File

@ -1,5 +1,3 @@
import java.util.ArrayList;
import java.util.LinkedList;