Skip to content

Conversation

@cyberkhalil
Copy link
Contributor

@cyberkhalil cyberkhalil commented Apr 14, 2018

changes :-

  • Remove space from Data Structures package name
  • adding docs for RSA.java
  • format ColumnarTranspositionCipher.java and fix English errors
  • fix BalancedBrackets.java

Copy link

@christianbender christianbender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work! I have some requests.

private static Object[] findElements() {
Object[] charValues = new Object[keyword.length()];
for (int i = 0; i < charValues.length; i++) {
for (int j = 0; j < abecedarium.length(); j++) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This loop can be avoid with help of the method .indexOf(c) see

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

table[i][secondColumnIndex]=table[i][firstColumnIndex];
table[i][firstColumnIndex]=columnToSwitch[i];

private static void switchColumns(Object[][] table, int firstColumnIndex, int secondColumnIndex, Object[] columnToSwitch) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please break this line up. max. 80 columns

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 done

@christianbender christianbender merged commit b082ecc into TheAlgorithms:master Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants