Skip to content

Lab03: Binary Search: Solution contains direct return from if #155

@mDeliaa

Description

@mDeliaa

Rules are stating that we are not allowed to directly return from if but solution contains:


int binary_search(int *v, int len, int dest)
{
	int start = 0;
	int end = len - 1;
	int middle;

	/**
	 * TODO: Implement binary search
	 */
loop:
	if (start > end)
		return -1;

Metadata

Metadata

Assignees

No one assigned

    Labels

    student-contribFix or improvement made by a student

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions