Search Results - JustLinux Forums


Search:

Type: Posts; User: lagdawg

Search: Search took 0.02 seconds.

  1. Replies
    278
    Views
    668,787

    Here is my solution with reversing vrooom. ...

    Here is my solution with reversing vrooom.



    #include<stdio.h>
    #include<string.h>

    char str[] = "vrooom race";

    void invVrooom () {
  2. Replies
    278
    Views
    668,787

    This problem can be solved recursively but it is...

    This problem can be solved recursively but it is slow on the order of O(n^2) or greater. But I beleive you could use dynamic programming to solve the recursion from the bottom up. Basically you only...
  3. Replies
    278
    Views
    668,787

    duncanbojangles: This problem is basically for...

    duncanbojangles:

    This problem is basically for a group of n people find out if n/2 people know each other.

    The method you propose will only work in O(n^2) time. Or number of people ^ 2.


    ...
  4. Replies
    278
    Views
    668,787

    if( var < 0) { var *= -1; }

    if( var < 0) {
    var *= -1;
    }
  5. Replies
    278
    Views
    668,787

    Hey, I did that, it is sometimes called the...

    Hey, I did that, it is sometimes called the Knight's Tour. I actually did it for some class using either FRIL or LISP can't remember which. If I find my code I will post it here. There is another...
  6. Replies
    278
    Views
    668,787

    Bernoulli Challenge

    I have a new challenge for everybody. This program was one that I had to write for a computer science class and requires a little mathematics background. (Though which a little intuition it can be...
  7. Replies
    278
    Views
    668,787

    Array of Ones Problem

    I have found an interesting result while using Perl to program the Array with equally distributed ones. Because Perl doesn't have any preset data types, when dividing two integers it automatically...
  8. Replies
    278
    Views
    668,787

    Here is the perl code for the ip parser...

    Here is the perl code for the ip parser challenge:



    #! /usr/sbin/perl

    $ip="123.234.21.123";
    my $iplong;
    my $ip2;
    my $delim;
  9. Replies
    278
    Views
    668,787

    Here is the perl way to the replace tab with...

    Here is the perl way to the replace tab with three spaces challenge.
    Other than opening the file, basically one line to replace and one to write to file.



    #! /usr/sbin/perl

    open (INFILE,...
  10. Replies
    278
    Views
    668,787

    I deciphered Sepero's first code. I mostly...

    I deciphered Sepero's first code. I mostly figured it out without a program but used it just to help. Anyway, I have attached the code to decipher the code in Perl. Did anyone else get it?
Results 1 to 10 of 10