.
This commit is contained in:
		
							
								
								
									
										8
									
								
								bac1/q2/algo/hashmap/.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								bac1/q2/algo/hashmap/.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| # Default ignored files | ||||
| /shelf/ | ||||
| /workspace.xml | ||||
| # Editor-based HTTP Client requests | ||||
| /httpRequests/ | ||||
| # Datasource local storage ignored files | ||||
| /dataSources/ | ||||
| /dataSources.local.xml | ||||
							
								
								
									
										9
									
								
								bac1/q2/algo/hashmap/.idea/misc.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								bac1/q2/algo/hashmap/.idea/misc.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="MarkdownSettingsMigration"> | ||||
|     <option name="stateVersion" value="1" /> | ||||
|   </component> | ||||
|   <component name="ProjectRootManager" version="2" languageLevel="JDK_X" default="true" project-jdk-name="20" project-jdk-type="JavaSDK"> | ||||
|     <output url="file://$PROJECT_DIR$/out" /> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										8
									
								
								bac1/q2/algo/hashmap/.idea/modules.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								bac1/q2/algo/hashmap/.idea/modules.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="ProjectModuleManager"> | ||||
|     <modules> | ||||
|       <module fileurl="file://$PROJECT_DIR$/hashmap.iml" filepath="$PROJECT_DIR$/hashmap.iml" /> | ||||
|     </modules> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										6
									
								
								bac1/q2/algo/hashmap/.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								bac1/q2/algo/hashmap/.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="VcsDirectoryMappings"> | ||||
|     <mapping directory="$PROJECT_DIR$/../../.." vcs="Git" /> | ||||
|   </component> | ||||
| </project> | ||||
							
								
								
									
										36
									
								
								bac1/q2/algo/hashmap/HashMap.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								bac1/q2/algo/hashmap/HashMap.java
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,36 @@ | ||||
| import java.util.Iterator; | ||||
| import java.util.LinkedList; | ||||
|  | ||||
| public class HashMap { | ||||
|     LinkedList<HashEntry>[] tab; | ||||
|     Iterator iter; | ||||
|  | ||||
|     class HashEntry{ | ||||
|         public Object key, value; | ||||
|     } | ||||
|  | ||||
|     class MyHashMapIterator implements Iterator{ | ||||
|         int i; | ||||
|  | ||||
|         public MyHashMapIterator(){ | ||||
|             while(i<tab.length){ | ||||
|                 if(tab[i] == null) | ||||
|                     continue; | ||||
|                 return; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         @Override | ||||
|         public boolean hasNext() { | ||||
|             if(i >= tab.length) | ||||
|                 return false; | ||||
|         } | ||||
|  | ||||
|         @Override | ||||
|         public Object next() { | ||||
|         } | ||||
|     } | ||||
|     public static void main(String[] args) { | ||||
|  | ||||
|     } | ||||
| } | ||||
							
								
								
									
										11
									
								
								bac1/q2/algo/hashmap/hashmap.iml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								bac1/q2/algo/hashmap/hashmap.iml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <module type="GENERAL_MODULE" version="4"> | ||||
|   <component name="NewModuleRootManager" inherit-compiler-output="true"> | ||||
|     <exclude-output /> | ||||
|     <content url="file://$MODULE_DIR$"> | ||||
|       <sourceFolder url="file://$MODULE_DIR$" isTestSource="false" /> | ||||
|     </content> | ||||
|     <orderEntry type="inheritedJdk" /> | ||||
|     <orderEntry type="sourceFolder" forTests="false" /> | ||||
|   </component> | ||||
| </module> | ||||
		Reference in New Issue
	
	Block a user