2D Arrays

Arraylists

 

https://ide.codingminutes.com/?id=zex

Lecture

 

arrays

passion arrays to functions

2d arrays

pass by value vs pass by reference

binarySearch function

arraylists (dynamic arrays)


ArrayLists

Methods & Return Types

Functions or Methods are a set of instructions bundled together to achieve a specific outcome. Functions are a good alternative to having repeating blocks of code in a program. Functions also increase the reusability of code. Values can be passed to a function using variables – we call these parameters or arguments. Functions can also return values

Square Root

Write a method to find square root of a number (using linear search)

Searching in Arrays

Linear Search

Searching algorithm to find the index of element in a given array.

Binary Search

Efficient searching algorithm to find the index of element in a given sorted array.

Homework

8 Mins

Prime Number print!

Made with Slides.com