Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

University of Maryland Masters of Economics Leaderboard
RPI Leaderboard
University of Maryland Masters of Economics  Leaderboard
Click here
NYU Tandon School of Engineering Leaderboard
Click here
Click here
University of California Irvine Leaderboard
University of California Irvine Leaderboard
Brandeis University Master of Finance Leaderboard 728x90
MAFI_728x90
MAFI_728x90
  • Business
  • Culture
  • Technology
  • International Rankings
    • Bangladesh
    • Canada
    • Egypt
    • India
    • Nigeria
    • Pakistan
    • Philippines
    • United Kingdom
    • United States of America
  • Masters Rankings
    • Accounting
    • Business Analytics
    • Chiropractic
    • Computer Engineering
    • Computer Science
    • Economics
    • Education
    • Finance
    • Financial Economics
    • Financial Engineering
    • Law
    • Management
    • Marketing
    • MBA
    • Nursing
    • Social Work
  • Resources
    • C++
      • Beginner’s Guide to C++
      • An Introduction to the Imperative Part of C++
      • C++ Code
        • Sorts
        • Binary Search Trees
        • Strings
        • Binary Search
        • Math
        • Quant
        • Puzzles/Games
        • Language Concepts
        • Graphics
        • OS Operations
        • Graphs
      • C++ Full Course
      • C++ Crash Course
      • C++ Interview Questions
      • C++ Q/A
      • C++ Books
      • C++ Free Books
      • C++ Videos
    • C Questions
    • C Programming Tips
    • Java Questions
    • Quant Data Sources
    • Quant Questions

Author: TFE Times

C++: Langton’s Ant

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged automaton, chris langston, langton's ant, turing, turing machine
C++: Langton’s Ant

Langton's ant is a cellular automaton that models an ant sitting on a plane of cells, all of which are white initially, facing in one of four directio

Continue Reading

C++: Loop Continue

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, continue, loop, loops
C++: Loop Continue

Show the following output using one loop. 1, 2, 3, 4, 5 6, 7, 8, 9, 10 Try to achieve the result by forcing the next iteration within the loop up

Continue Reading

C++: Longest Common Subsequence

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ StringsTagged common, longest, subsequence
C++: Longest Common Subsequence

#include <algorithm> #include <string> #include <vector> #include <stdio.h> #include <string.h> // See http

Continue Reading

C++: Call a Foreign-Language Function

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged a, c, call, cll, foreignlanguage, foreignlnguge, function
C++: Call a Foreign-Language Function

Show how a foreign language function can be called from the language. As an example, consider calling functions defined in the C language. Create a

Continue Reading

C++: Catamorphism

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, catamorphism
C++: Catamorphism

Reduce is a function or method that is used to take the values in an array or a list and apply a function to successive members of the list to produce

Continue Reading

C++: Comma Quibbling

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged comma, quibbling
C++: Comma Quibbling

Comma quibbling is a task originally set by Eric Lippert in his blog. The task is to write a function to generate a string output which is the conc

Continue Reading

C++: Dijkstra’s Algorithm

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged algorithm, c, Dijkstra, s
C++: Dijkstra’s Algorithm

Dijkstra's algorithm, conceived by Dutch computer scientist Edsger Dijkstra in 1956 and published in 1959, is a graph search algorithm that solves the

Continue Reading

C++: Dutch National Flag Problem

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged dutch, flag, national, problem, puzzle
C++: Dutch National Flag Problem

The Dutch national flag is composed of three coloured bands in the order red then white and lastly blue. The problem posed by Edsger Dijkstra is:

Continue Reading

C++: Standard Error

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, error, log, logging, standard, standard error
C++: Standard Error

A common practice in computing is to send error messages to a different output stream than normal text console messages. The normal messages print

Continue Reading

C++: Identity Matrix

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, identity, identity matrix, matrix
C++: Identity Matrix

Build an identity matrix of a size known at runtime. An identity matrix is a square matrix, of size n × n, where the diagonal elements are all 1s,

Continue Reading

Posts navigation

Older posts
Newer posts
output_8BgzjE
University of California Berkeley Master of Financial Engineering MFE Sideboard
NYU Tandon School of Engineering Sideboard
University of California Irvine Leaderboard
Click here
University of Maryland Masters of Economics Sideboard
Brandeis Business School
University of Maryland Masters of Economics Sideboard
  • Top 10 Restaurants in Berlin, Germany

    August 22, 2026June 20, 2026 by TFE Times
  • The History of the 8-Iron: The Club That Turned Approach Shots Into Scoring Opportunities

    August 21, 2026July 13, 2026 by TFE Times
  • Custom Metalwork Meets Digital Design: Inside CopperSmith’s Manufacturing Model

    August 20, 2026August 20, 2026 by TFE Times
  • How to Choose a Vacuum Phone Mount for Textured Car Dashboards

    August 20, 2026 by TFE Times
  • 7 Investments That Will Help Your Coffee Shop Deliver Better Products and Services

    August 20, 2026 by TFE Times
  • How to Pick a Good Bottle of Wine Under $25

    August 20, 2026July 13, 2026 by TFE Times
  • Mistakes are Feedback Not Final Grades

    August 19, 2026 by TFE Times
  • Five players who swapped Newcastle for Liverpool

    August 19, 2026 by TFE Times
  • Smart Planning for Australian No-Deposit Pokies Bonuses

    August 19, 2026 by TFE Times
  • What Happens If Someone Dies Without a Will? Understanding Intestate Succession

    August 19, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes