Git Product home page Git Product logo

break-week2-practice's Introduction

break-week2-practice

Algorithms At Home Practice with Pseudo Code created by Aldi Andalan ([email protected])

Please note that I use this for practice from very raw scratch, I made this practice answer without search engine or AI help, or console on inspect element in any browser or code editor to check the answer. Assume that I do not have prior knowledge to Javascript at all eventhough I learn Javaswcript in FSSE RevoU Bootcamp. I only practice on it just for 40 minutes so I do not expect that I close to the most ideal psesudo code algorithm nevertheless, at least I try to practice to prepare for future algorithms lecture in milestone 4 or in futher future. I hope I still get feedback on guidance on how to start and improve my algorithms skills

Number 5 home practice: print all whole numbers in between

Start
Create Function consists a and b
Define a and b as 3 and 8 with integer numbers data type
Define c as set of integer numbers in data type consists of numbers that less han 8 and more than 3
if c consists numbers less than 8 and more than 3
return or print c
End

Number 7 home practice: check unique values

start
define x as integer numbers consists of 1,2,2,4,5
create a function that give condition to x 
the condition is :
if one number in x is counted more than one of the same number, return or print false, 
else one number in x is counted not more than one, return or print true
end

Number 3 home practice: reverse string function

comment only to identify number order in alphabetic letters:
h e l l o:
8 5 12 12 15

start
define h as 8
define e as 5
define l as 12
define o as 15
create function that sort integer numbers
change order of set number of 8, 5, 12, 12, 15 into 15, 12, 12, 5, 8
return 15, 12, 12, 5, 8 as initial aphabethic definition
end

Number 1 home practice: number summation

start
define x as set of integer numbers consist of 1,2,3,4,5
create a function that will sum all of numbers in x
define y as sum all of 1,2,3,4,5 in x
or define y as sum all of numbers that are more than zero and less than 6
return y
end

Number 1 advance practice: return the duplicates

start
define x as integer numbers consists of 1,2,4,2,5,1
define y as integer numbers consists of 2,5,7,3,5,8
set function as z that will contain each x and y
in the function of z set condition that if one of number inside inserted defintion (x or y) counted more than 1 of the same number return or print set of those numbers that contained more than 1 else print or return empty set
end

break-week2-practice's People

Contributors

andalanaldi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.