You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-2Lines changed: 25 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,19 @@
1
1
# CodingBat Java Solutions
2
2
3
-
My solutions to Coding Bat Java Problems.
3
+
My solutions to Coding Bat Java Problems.
4
+
5
+
## Thoughts
6
+
7
+
- Recommended order to tackle problems - start with Map & 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.
8
+
- The string-1 section relies heavily on the substring method.
9
+
- I had most difficulty with array 3.
10
+
- I tackled AP-1 problems too late - AP-1 helps understanding some Array 2 & 3 problems easier.
11
+
- 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.
12
+
- Poor descriptions of problems in some places.
13
+
- Actually, there is decent variety in solutions to these problems out there.
14
+
- A lot of my solutions were approaches that first came to mind.
15
+
- I did a lot of problems back to back at one time. I slowed down for the more difficulty categories and did a fair amount of research to help solve some problems.
16
+
- I didn't bother making classes and having proper formatted java code.
4
17
5
18
## Useful Resources
6
19
@@ -16,4 +29,14 @@ My solutions to Coding Bat Java Problems.
16
29
-[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
17
30
-[Baeldung](https://www.baeldung.com/java-string-split-multiple-delimiters) - split string with multiple delimiters
18
31
-[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
19
-
-[Stack Overflow](https://stackoverflow.com/questions/17235719/determining-if-a-list-numbers-are-sequential) - determining if a list numbers are sequential
32
+
-[Stack Overflow](https://stackoverflow.com/questions/17235719/determining-if-a-list-numbers-are-sequential) - determining if a list numbers are sequential
33
+
-[YouTube](https://www.youtube.com/watch?v=ir_acNo6BSc) - How to Shift Elements in an Array (Java) - Modified CodingBat Question
34
+
-[Geeks for Geeks](https://www.geeksforgeeks.org/split-array-two-equal-sum-subarrays/) - split array 2 equal sum subarrays
35
+
-[Stack Overflow](https://stackoverflow.com/questions/4968323/java-parse-int-value-from-a-char) - java parse int value from a char
36
+
-[Stack Overflow](https://stackoverflow.com/questions/7569335/reverse-a-string-in-java) - reverse a string
37
+
-[Stack Overflow](https://stackoverflow.com/questions/8777982/issue-with-java-regex-b) - issue with java regex b
38
+
-[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
39
+
-[Tutorials Point](https://www.tutorialspoint.com/How-to-divide-an-array-into-half-in-java) - divide an array in half
40
+
-[Stack Overflow](https://stackoverflow.com/questions/3389264/how-to-get-the-separate-digits-of-an-int-number) - separate digits of an int number
41
+
-[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
42
+
-[Stack Overflow](https://stackoverflow.com/questions/4150233/remove-null-value-from-string-array-in-java) - remove null value from string array
0 commit comments