Skip to content

Instantly share code, notes, and snippets.

View NicolasFrancaX's full-sized avatar
🎯
Focusing

Nicolas França NicolasFrancaX

🎯
Focusing
View GitHub Profile
#include <iostream>
#include <string>
#include <stack>
using namespace std;
bool verification(string s) {
stack<char> stq;
for (unsigned int i = 0; i < s.length(); i++) {
#include <iostream>
#include <sstream>
#include <map>
#include <vector>
using namespace std;
int main() {
string text;
string word;
function packLists(a) {
if (!a.length) {
return [[]];
} else if (a.length == 1) {
return [[a[0]]];
}
var c = [a[0]]
/* (**) Determine the prime factors of a given positive integer.
* Construct a flat list containing the prime factors in ascending order.
* Example:
* * (prime-factors 315)
* (3 3 5 7)
*/
function prime(n) {
if (n < 2) {
/* (**) Determine the prime factors of a given positive integer.
* Construct a flat list containing the prime factors in ascending order.
* Example:
* * (prime-factors 315)
* (3 3 5 7)
*/
function prime(n) {
if (n < 2) {
/* (**) Determine the prime factors of a given positive integer.
* Construct a flat list containing the prime factors in ascending order.
* Example:
* * (prime-factors 315)
* (3 3 5 7)
*/
function prime(n) {
if (n < 2) {
/* (**) Determine the prime factors of a given positive integer.
* Construct a flat list containing the prime factors in ascending order.
* Example:
* * (prime-factors 315)
* (3 3 5 7)
*/
function prime(n) {
if (n < 2)
/* (**) Determine the prime factors of a given positive integer.
* Construct a flat list containing the prime factors in ascending order.
* Example:
* * (prime-factors 315)
* (3 3 5 7)
*/
function prime(n) {
if (n < 2) {
/* (**) Determine the prime factors of a given positive integer.
* Construct a flat list containing the prime factors in ascending order.
* Example:
* * (prime-factors 315)
* (3 3 5 7)
*/
function prime(n) {
if (n < 2) {
/* (**) Determine the prime factors of a given positive integer.
* Construct a flat list containing the prime factors in ascending order.
* Example:
* * (prime-factors 315)
* (3 3 5 7)
*/
function prime(n) {
if (n < 2) {
return false;