{"id":21307761,"url":"https://github.com/jdegand/codingbat-java","last_synced_at":"2025-03-15T20:13:19.418Z","repository":{"id":179503689,"uuid":"656405454","full_name":"jdegand/codingbat-java","owner":"jdegand","description":"Coding Bat Java Solutions ","archived":false,"fork":false,"pushed_at":"2023-08-23T17:19:52.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T09:13:30.298Z","etag":null,"topics":["codingbat","codingbat-solutions","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdegand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-20T22:27:08.000Z","updated_at":"2023-08-22T17:35:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"14ddd755-f802-4bee-ad23-b3c0a58ce090","html_url":"https://github.com/jdegand/codingbat-java","commit_stats":null,"previous_names":["jdegand/codingbat-java"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fcodingbat-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fcodingbat-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fcodingbat-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fcodingbat-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdegand","download_url":"https://codeload.github.com/jdegand/codingbat-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243785089,"owners_count":20347409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codingbat","codingbat-solutions","java"],"created_at":"2024-11-21T16:34:05.416Z","updated_at":"2025-03-15T20:13:19.387Z","avatar_url":"https://github.com/jdegand.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodingBat Java Solutions\n\nMy solutions to Coding Bat Java Problems. \n\n## Thoughts\n\n- Recommended order to tackle problems - start with Map \u0026 Functional (Mostly self-contained with little relevance to other problems),Logic 1, String 1, Logic 2, Array 1, Warmup 1 and 2, String 2, AP-1, Recursion 1, Recursion 2, String 3, Array 2, and Array 3.\n- The string-1 section relies too heavily on the substring method.\n- I had most difficulty with array 3.\n- I tackled AP-1 problems too late - AP-1 helps understanding some Array 2 \u0026 3 problems easier.\n- I wasn't going to bother with the warmup problems (since they give you solutions) but they actually help you solve some of the more difficult problems in the higher categories.  \n- A lot of my solutions were approaches that first came to mind.\n- I did a lot of problems back to back at one time.  I slowed down for the more difficult categories and did a fair amount of research to help solve some problems.   \n- There are poor directions for some problems. \n- There is a decent variety of solutions to these problems out there. \n- I didn't bother making classes and having proper formatted java code. \n\n## Useful Resources\n\n- [Baeldung](https://www.baeldung.com/java-string-interpolation) - java string interpolation\n- [Stack Overflow](https://stackoverflow.com/questions/1484347/finding-the-max-min-value-in-an-array-of-primitives-using-java) - finding the max min value in an arrray of primitives using java\n- [Stack Overflow](https://stackoverflow.com/questions/15217438/counting-occurrences-of-a-key-in-a-map-in-java) - counting occurrences of a key in a map in java\n- [Stack Overflow](https://stackoverflow.com/questions/40197762/converting-arraylistinteger-into-int-wont-work-in-java) - converting arraylist integer into int\n- [Educative](https://www.educative.io/answers/how-to-left-shift-k-elements-of-an-array) - how to left shift k elements of an array\n- [Stack Overflow](https://stackoverflow.com/questions/44065154/java-break-statement-sometimes-not-work-why) - java break statement not working\n- [Stack Overflow](https://stackoverflow.com/questions/9576557/most-efficient-way-to-find-smallest-of-3-numbers-java) - most efficient way to find smallest of 3 numbers\n- [Baeldung](https://www.baeldung.com/java-count-chars) - java count chars\n- [Stack Overflow](https://stackoverflow.com/questions/13386107/how-to-remove-single-character-from-a-string-by-index) - how to remove single character from a string by index\n- [C Sharp Corner](https://www.c-sharpcorner.com/article/how-can-i-get-last-characters-of-a-string-in-java/#:~:text=If%20we%20want%20to%20get,charAt(11)%22) - get last characters of a string\n- [Baeldung](https://www.baeldung.com/java-string-split-multiple-delimiters) - split string with multiple delimiters\n- [Stack Overflow](https://stackoverflow.com/questions/4982210/find-the-max-of-3-numbers-in-java-with-different-data-types) - find the max of 3 in java with different data types\n- [Stack Overflow](https://stackoverflow.com/questions/17235719/determining-if-a-list-numbers-are-sequential) - determining if a list numbers are sequential\n- [YouTube](https://www.youtube.com/watch?v=ir_acNo6BSc) - How to Shift Elements in an Array (Java) - Modified CodingBat Question\n- [Geeks for Geeks](https://www.geeksforgeeks.org/split-array-two-equal-sum-subarrays/) - split array 2 equal sum subarrays\n- [Stack Overflow](https://stackoverflow.com/questions/4968323/java-parse-int-value-from-a-char) - java parse int value from a char\n- [Stack Overflow](https://stackoverflow.com/questions/7569335/reverse-a-string-in-java) - reverse a string\n- [Stack Overflow](https://stackoverflow.com/questions/8777982/issue-with-java-regex-b) - issue with java regex b\n- [Stack Overflow](https://stackoverflow.com/questions/29777696/fastest-way-to-sort-an-array-of-objects-in-java) - fastest way to sort an array of objects in java\n- [Tutorials Point](https://www.tutorialspoint.com/How-to-divide-an-array-into-half-in-java) - divide an array in half\n- [Stack Overflow](https://stackoverflow.com/questions/3389264/how-to-get-the-separate-digits-of-an-int-number) - separate digits of an int number\n- [Stack Overflow](https://stackoverflow.com/questions/37569841/getting-the-first-character-of-each-word-in-a-string-array-and-its-frequency) - getting first character of each word in string array and its frequency\n- [Stack Overflow](https://stackoverflow.com/questions/4150233/remove-null-value-from-string-array-in-java) - remove null value from string array","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Fcodingbat-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdegand%2Fcodingbat-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Fcodingbat-java/lists"}