Home > Java > javaTutorial > body text

List of Exercises to train Programming Logic 2.

王林
Release: 2024-08-23 18:00:34
Original
600 people have browsed it

Lista de Exercícios para treinar Lógica de Programação 2.

I leave everyone in the community a list of exercises to train Programming Logic.
(I leave my resolution for each one, using the Java language)

Exercises

1- Find the largest number in a list: Write an algorithm to find the largest number in a list of values.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

2- Check if a number is prime: Create a program that determines whether a number is prime or not.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

3- Invert a string: Develop an algorithm that inverts a string given as input.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

4- Calculate the factorial of a number: Write a program that calculates the factorial of a given number.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

5- List sorting: Implement a sorting algorithm to sort a list of values.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

6- Check if a word is a palindrome: Create a program that identifies if a word is a palindrome.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

7- Check if two sets are equal: Develop an algorithm for
check if two sets have the same elements.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

8- Find the missing number: Given a sequence of numbers from 1 to N, find the missing number.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

9- Find the smallest number in a list: Write a program to find the smallest number in a list of values.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

10- Convert a decimal number to binary: Implement an algorithm that converts a decimal number to its binary equivalent.

Em breve
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

Credits:
All exercises in the list above were obtained from Awari.
Link: https://awari.com.br/10-exercicios-de-logica-de-programacao-para-aprimorar-suas-habilidades/

The above is the detailed content of List of Exercises to train Programming Logic 2.. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template