This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MY TEST CLA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigDecimal; | |
import java.math.BigInteger; | |
public class TeaConstants { | |
public static void main(String[] args) { | |
final BigDecimal z = new BigDecimal("1.6180339887498948482045868343656"); | |
BigDecimal p = new BigDecimal("256.0000000000000000000000000000000"); | |
for (int i = 0; i < 5; ++i) { | |
final BigDecimal k = p.divide(z, BigDecimal.ROUND_FLOOR); | |
final BigInteger ki = k.toBigInteger(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'install', '-g', 'less' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 silly loadCurrentTree Starting | |
5 silly install loadCurrentTree | |
6 silly install readGlobalPackageData | |
7 silly fetchPackageMetaData less | |
8 silly fetchNamedPackageData less | |
9 silly mapToRegistry name less |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code example translated from Java to C++ | |
#include <algorithm> | |
#include <stdexcept> | |
#include <vector> | |
int highestProductOf3(const std::vector<int>& vectorOfInts) | |
{ | |
if (vectorOfInts.size() < 3) | |
throw std::invalid_argument("Less than 3 items!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Code example translated from Java to C */ | |
#include <stddef.h> | |
int minInt(int a, int b) | |
{ | |
return a < b ? a : b; | |
} | |
int maxInt(int a, int b) |