Juan Code

Juan Code

You may also like

atri IT
atri IT
FundKo
FundKo

Contact me if you want your business to have it's own
Enterprise Resource Planning (ERP) system.

If ever my methods of doing/writing my program somewhat does not meet your standards, I ask that you take it easy on me.

23/06/2022

๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ฐ๐—ฒ๐—ป๐—ฎ๐—ฟ๐—ถ๐—ผ:

Given a number n, return the number of positive odd numbers below n, EASY!

Examples (Input -> Output)
7 -> 3 (because odd numbers below 7 are [1, 3, 5])
15 -> 7 (because odd numbers below 15 are [1, 3, 5, 7, 9, 11, 13])

23/06/2022

๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ฐ๐—ฒ๐—ป๐—ฎ๐—ฟ๐—ถ๐—ผ:

Write a simple regex to validate a username. Allowed characters are:

lowercase letters,
numbers,
underscore
Length should be between 4 and 16 characters (both included).

23/06/2022

๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ฐ๐—ฒ๐—ป๐—ฎ๐—ฟ๐—ถ๐—ผ:

Write a function that accepts an integer n and a string s as parameters, and returns a string of s repeated exactly n times.

Examples (input -> output)
6, "I" -> "IIIIII"
5, "Hello" -> "HelloHelloHelloHelloHello"

23/06/2022

๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ฐ๐—ฒ๐—ป๐—ฎ๐—ฟ๐—ถ๐—ผ:

You were camping with your friends far away from home, but when it's time to go back, you realize that your fuel is running out and the nearest pump is 50 miles away! You know that on average, your car runs on about 25 miles per gallon. There are 2 gallons left.

Considering these factors, write a function that tells you if it is possible to get to the pump or not.

Function should return true if it is possible and false if not.

23/06/2022

๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ฐ๐—ฒ๐—ป๐—ฎ๐—ฟ๐—ถ๐—ผ:

Your task is to make two functions ( max and min, or maximum and minimum, etc., depending on the language ) that receive a list of integers as input, and return the largest and lowest number in that list, respectively.

Examples (Input -> Output)
* [4,6,2,1,9,63,-134,566] -> max = 566, min = -134
* [-52, 56, 30, 29, -54, 0, -110] -> min = -110, max = 56
* [42, 54, 65, 87, 0] -> min = 0, max = 87
* [5] -> min = 5, max = 5

22/06/2022

๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ฐ๐—ฒ๐—ป๐—ฎ๐—ฟ๐—ถ๐—ผ:

Replace all the dots . in the specified String str with dashes -

22/06/2022

๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ฐ๐—ฒ๐—ป๐—ฎ๐—ฟ๐—ถ๐—ผ:

You are given two sorted arrays that both only contain integers. Your task is to find a way to merge them into a single one, sorted in asc order. Complete the function mergeArrays(arr1, arr2), where arr1 and arr2 are the original sorted arrays.

You don't need to worry about validation, since arr1 and arr2 must be arrays with 0 or more Integers. If both arr1 and arr2 are empty, then just return an empty array.

Note: arr1 and arr2 may be sorted in different orders. Also arr1 and arr2 may have same integers. Remove duplicated in the returned result.

Examples (input -> output)
* [1, 2, 3, 4, 5], [6, 7, 8, 9, 10] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

* [1, 3, 5, 7, 9], [10, 8, 6, 4, 2] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

* [1, 3, 5, 7, 9, 11, 12], [1, 2, 3, 4, 5, 10, 12] -> [1, 2, 3, 4, 5, 7, 9, 10, 11, 12]

22/06/2022

๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ฐ๐—ฒ๐—ป๐—ฎ๐—ฟ๐—ถ๐—ผ:

Create a method to see whether the string is ALL CAPS.

Examples (input -> output)

"c" -> False
"C" -> True
"hello I AM DONALD" -> False
"HELLO I AM DONALD" -> True
"ACSKLDFJSgSKLDFJSKLDFJ" -> False
"ACSKLDFJSGSKLDFJSKLDFJ" -> True

A string is said to be in ALL CAPS whenever it does not contain any lowercase letter so any string containing no letters at all is trivially considered to be in ALL CAPS.

22/06/2022

๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฝ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ฐ๐—ฒ๐—ป๐—ฎ๐—ฟ๐—ถ๐—ผ:

Suzuki is a monk who climbs a large staircase to the monastery as part of a ritual. Some days he climbs more stairs than others depending on the number of students he must train in the morning. He is curious how many stairs might be climbed over the next 20 years and has spent a year marking down his daily progress.

The sum of all the stairs logged in a year will be used for estimating the number he might climb in 20.

20_year_estimate = one_year_total * 20

You will receive the following data structure representing the stairs Suzuki logged in a year. You will have all data for the entire year so regardless of how it is logged the problem should be simple to solve.

stairs = [sunday, monday, tuesday ,wednesday, thursday, friday, saturday]
Make sure your solution takes into account all of the nesting within the stairs array.

Each weekday in the stairs array is an array.

sunday = [6737, 7244, 5776, 9826, 7057, 9247, 5842, 5484, 6543, 5153, 6832, 8274, 7148, 6152, 5940, 8040, 9174, 7555, 7682, 5252, 8793, 8837, 7320, 8478, 6063, 5751, 9716, 5085, 7315, 7859, 6628, 5425, 6331, 7097, 6249, 8381, 5936, 8496, 6934, 8347, 7036, 6421, 6510, 5821, 8602, 5312, 7836, 8032, 9871, 5990, 6309, 7825]

Your function should return the 20 year estimate of the stairs climbed using the formula above.

Want your business to be the top-listed Computer & Electronics Service in Cagayan de Oro?
Click here to claim your Sponsored Listing.

Address

Cagayan De Oro
9000

Other Software Companies in Cagayan de Oro (show all)
KaHero KaHero
3/F Insular Life Bldg. , Velez-AKut Street Brgy 14
Cagayan De Oro, 9000

A point-of-sale system that offers real-time sales and inventory reports & supports multiple branches

Software Premium Software Premium
Carmen
Cagayan De Oro

We provide affordable virus free and legit Software through fast and easy transactions.

Qomunica Software Development Services Qomunica Software Development Services
Cornerstone Avenue Building J. V Seriรฑa Street Carmen
Cagayan De Oro, 9000

Qomunica Software Development Services is a software company that provides a full suite of quality s

Philippine Speech Laboratory by Digicomlink Philippine Speech Laboratory by Digicomlink
2/F Room 201 P&J Lim Bldg. Tiano Bros./Kalambaguhan Sts. Brgy 14
Cagayan De Oro, 9000

Speech Laboratory by Digicomlink Systems Corporation is a provider of complete setup speech lab.

Kingdee Software - Cagayan de Oro Kingdee Software - Cagayan de Oro
Cagayan De Oro, 9000

Our Mission is to provide fully comprehensive business management and IT solutions for all businesses, companies, government authorities, profit/non-profit organizations, associati...

Geo Pindot PH Geo Pindot PH
3rd Floor, VLC Tower One, Gran Via
Cagayan De Oro, 9000

GeoPindot PH

Fella Technology Fella Technology
ICT Bldg 9, 4th Floor, Room 2/USTP-CDO, Claro M. Recto Avenue, Lapasan
Cagayan De Oro, 9000

Reimagine hospitality. Fella is a food and beverage interactive digital menu and ordering app

IntelMutya Group Corporation IntelMutya Group Corporation
2F Elipe City, R. N. Pelaez Boulevard , Kauswagan
Cagayan De Oro, 9000

IntelMutya Group is a privately-held holding company that owns several companies in different industries.

GreenMinded IT Solutions GreenMinded IT Solutions
Apovel Subdivision
Cagayan De Oro, 9000

Offers Tech services for website, software, graphics, project management and e-commerce services

Future Tranz Solutions, Inc Future Tranz Solutions, Inc
3rd Floor FICCO Building Tiano Corner Recto
Cagayan De Oro, 9000

Cagayan de Oro based software labs.

QuantumQuill Studios QuantumQuill Studios
Cagayan De Oro, 9000

๐Ÿš€ Welcome to QuantumQuill Studios! ๐Ÿš€ Tech + Creativity = Limitless Possibilities ๐Ÿ’กโœจ

Cafรฉ Comfy Cafรฉ Comfy
Claro M. Recto Avenue, Lapasan, Cagayan De Oro City
Cagayan De Oro

๐—™๐—ถ๐—ป๐—ฑ ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ฝ๐—ฒ๐—ฟ๐—ณ๐—ฒ๐—ฐ๐˜ ๐˜€๐˜๐˜‚๐—ฑ๐˜† ๐˜€๐—ฝ๐—ผ๐˜ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฎ๐—ณรฉ ๐—–๐—ผ๐—บ๐—ณ๐˜†: ๐——๐—ถ๐˜€๐—ฐ๐—ผ๐˜ƒ๐—ฒ๐—ฟ, ๐—ฅ๐—ฒ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ฒ, ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐—ฎ๐˜ƒ๐—ผ๐—ฟ ๐˜๐—ต๐—ฒ ๐—ฐ๐—ผ๐˜‡๐˜† ๐˜ƒ๐—ถ๐—ฏ๐—ฒ๐˜€ ๐—ผ๐—ณ ๐—–๐—ฎ๐—ด๐—ฎ๐˜†๐—ฎ๐—ป ๐—ฑ๐—ฒ ๐—ข๐—ฟ๐—ผ'๐˜€ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ ๐˜€๐—ต๐—ผ๐—ฝ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐˜€๐˜๐˜‚๐—ฑ๐˜† ๐—ต๐˜‚๐—ฏ๐˜€! โ˜•๐Ÿ‚๐Ÿ“š