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
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,8 +130,7 @@ Include contains single header implementation of data structures and some algori
130
130
| Test cases for self created string library |[pstring_test.cpp](string_problems/pstring_test.cpp)|
131
131
132
132
### Common Data Structure and logic problems
133
-
| Problem | Solution |
134
-
| :------------ | :----------: |
133
+
| Problem | Solution || :------------ | :----------: |
135
134
| Print the contents of matrix in a spiral order | [matrix_spiral_print.cpp](common_ds_algo_problems/matrix_spiral_print.cpp)
136
135
| Given a M x N matrix, rotate it by R rotations anticlockwise, and show the resulting matrix. |[rotate_matrix.cpp](common_ds_algo_problems/rotate_matrix.cpp)|
137
136
| Rotate an array by r elements ( left or right ) | [array_rotation.cpp](common_ds_algo_problems/array_rotation.cpp)
@@ -141,8 +140,7 @@ Include contains single header implementation of data structures and some algori
141
140
| Encrypt and then decrypts a text using Caeser Cipher. |[caeser_cipher.cpp](common_ds_algo_problems/caeser_cipher.cpp)|
142
141
| Encrypt and then decrypts a text using Vigenère cipher. |[vigenere_cipher.cpp](common_ds_algo_problems/vigenere_cipher.cpp)|
143
142
144
-
### Math Problems
145
-
| Problem | Solution |
143
+
### Math Problems| Problem | Solution |
146
144
| :------------ | :----------: |
147
145
| Print all the permutations of a string. Example: Permutations of ABC are ABC, ACB, BCA, BAC, CAB, CBA |[string_permutations.cpp](math_problems/string_permutations.cpp)|
148
146
| Euclidean algorithm to find greatest common divisor of two numbers. (Iterative and recursive)|[gcd.cpp](math_problems/gcd.cpp)|
@@ -170,7 +168,8 @@ Include contains single header implementation of data structures and some algori
170
168
| Given an array A of n elements, find three indices i, j and k such that A[i]^2 + A[j]^2 = A[K]^2. O(n2) time complexity and O(1) space complexity |[squareSum.cpp](sort_search_problems/squareSum.cpp)|
171
169
| Given an unsorted array arr[0..n-1] of size n, find the minimum length subarray arr[s..e] such that sorting this subarray makes the whole array sorted. |[minLengthUnsortedArray.cpp](sort_search_problems/minLengthUnsortedArray.cpp)|
172
170
| Find the missing number in Arithmetic Progression |[missingNumber2.cpp](sort_search_problems/missingNumber2.cpp)|
173
-
| Find the common elements in 3 sorted arrays |[commonIn3Arrays.cpp](sort_search_problems/commonIn3Arrays.cpp)|
171
+
| Find the common elements in 3 sorted vectors |[commonIn3Arrays.cpp](sort_search_problems/commonIn3Arrays.cpp)|
0 commit comments