Skip to content

update chiphers - #419

Merged
christianbender merged 4 commits into
TheAlgorithms:masterfrom
cyberkhalil:master
Apr 15, 2018
Merged

update chiphers#419
christianbender merged 4 commits into
TheAlgorithms:masterfrom
cyberkhalil:master

Conversation

@cyberkhalil

@cyberkhalil cyberkhalil commented Apr 14, 2018

Copy link
Copy Markdown
Contributor

changes :-

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

@christianbender christianbender left a comment

Copy link
Copy Markdown

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++) {

Copy link
Copy Markdown

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
Copy Markdown
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) {

Copy link
Copy Markdown

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
Copy Markdown
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