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
на github | |
1. изтриване на проетка | |
2. създавене на private проект със същото име | |
3. добавяне на gozzoo като colraborator | |
4. копираш урл-а; _git_project_url_ | |
локално | |
1. изтриване на директорията .git |
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 os, strutils | |
proc max(a, b: int): int = | |
if a > b: | |
return a | |
return b | |
proc fannkuchredux(n: int): int = | |
var perm = newSeq[int](n) | |
var perm1 = newSeq[int](n) |
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
function fannkuchredux(n) { | |
var perm = new Array(n); | |
var perm1 = new Array(n); | |
var count = new Array(n); | |
var maxFlipsCount = 0; | |
var permCount = 0; | |
var checksum = 0; | |
var i; | |
for (i = 0; i < n; i++) |
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
public class Fannkuchredux { | |
static int fannkuchredux(int n) { | |
int[] perm = new int[n]; | |
int[] perm1 = new int[n]; | |
int[] count = new int[n]; | |
int maxFlipsCount = 0; | |
int permCount = 0; | |
int checksum = 0; | |
int i; |
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('dart:core'); | |
class FannkuchreduxTest { | |
static int fannkuchredux(int n) { | |
var perm = new List(n); | |
var perm1 = new List(n); | |
var count = new List(n); | |
int maxFlipsCount = 0; | |
int permCount = 0; |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
) | |
func max(a, b int ) int { | |
if a > b { |
NewerOlder