Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hw3 #430

Open
wants to merge 15 commits into
base: HW3
Choose a base branch
from
Open

Hw3 #430

wants to merge 15 commits into from

Conversation

draj36
Copy link

@draj36 draj36 commented Nov 21, 2015

No description provided.

while (temp > 1){
temp = temp >> 1;
loglSize = loglSize + 1;
}

Choose a reason for hiding this comment

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

Instead of using the above while loop, you can incorporate this to following for loop,
by setting the initial j to lSize >> 1 or (lSize/2), and decrease it by half on each iteration.

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