Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
for-Alfabank
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Ernesto Suarez
for-Alfabank
Commits
66c102e3
Unverified
Commit
66c102e3
authored
Oct 02, 2019
by
Jose Ernesto Suarez
Committed by
GitHub
Oct 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maybe some compilation failures
X is not a class
parent
264a7935
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
plus array
plus array
+3
-3
No files found.
plus array
View file @
66c102e3
...
@@ -44,15 +44,15 @@ public class test {
...
@@ -44,15 +44,15 @@ public class test {
}
}
//I just choose this number)
//I just choose this number)
int
X
= 17;
int
x
= 17;
System.out.print("\nX = " + X);
System.out.print("\nX = " + X);
//call my binary search
//call my binary search
int last = ar.length-1;
int last = ar.length-1;
int first = 0;
int first = 0;
int index = binarySearch(ar,first,last,
X
);
int index = binarySearch(ar,first,last,
x
);
if (index != -1) {
if (index != -1) {
System.out.println("\n" +
X
+ " more than first_index_number: " + index);
System.out.println("\n" +
x
+ " more than first_index_number: " + index);
} else {
} else {
System.out.println("\nsomething wrong");
System.out.println("\nsomething wrong");
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment