Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

University of California Irvine Leaderboard
Click here
Brandeis University Master of Finance Leaderboard 728x90
NYU Tandon School of Engineering Leaderboard
University of California Irvine Leaderboard
Click here
RPI Leaderboard
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

Month: September 2017

C++: Input/Output for Pairs of Numbers

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged file reading, for, input, numbers, of, output, pairs
C++: Input/Output for Pairs of Numbers

From lines of input starting with a line containing the numbers of pairs to follows, followed by that number of pairs of integers separated by a space

Continue Reading

C++: Infinity

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

Write a function which tests if infinity is supported for floating point numbers (this step should be omitted for languages where the language specifi

Continue Reading

C++: Floyd’s Triangle

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged floyd's triangle, natural numbers
C++: Floyd’s Triangle

Floyd's triangle lists the natural numbers in a right triangle aligned to the left where the first row is just 1 successive rows start towards

Continue Reading

C++: Entropy

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

Calculate the information entropy (Shannon entropy) of a given input string. Entropy is the expected value of the measure of information content in

Continue Reading

C++: Continued Fraction

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, continued, fraction
C++: Continued Fraction

A number may be represented as a continued fraction (see Mathworld for more information) as follows: The task is to write a program which gen

Continue Reading

C++: Balanced Brackets

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged balanced, brackets
C++: Balanced Brackets

Task: Generate a string with N opening brackets (“[”) and N closing brackets (“]”), in some arbitrary order. Determine whether the gen

Continue Reading

C++: Knuth’s Algorithm S

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged algorithm, algorithm s, knuths, s
C++: Knuth’s Algorithm S

This is a method of randomly sampling n items from a set of M items, with equal probability; where M >= n and M, the number of items is unknown unt

Continue Reading

C++: Greatest Common Divisor

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, divide, division, gcd, greatest common divisor
C++: Greatest Common Divisor

This task requires the finding of the greatest common divisor of two integers. Copied from least common multiple page for the sake of completeness.

Continue Reading

C++: Generate Chess960 Starting Position

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged 960, bobby fisher, chess, chess960, generate, position, starting
C++: Generate Chess960 Starting Position

Chess960 is a variant of chess created by world champion Bobby Fisher. Unlike other variants of the game, Chess960 does not require a different materi

Continue Reading

C++: Digital Root

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, digital, Root
C++: Digital Root

The digital root, X, of a number, n, is calculated: find X as the sum of the digits of n find a new X by summing the digits of X, repeating un

Continue Reading

Posts navigation

Older posts
Newer posts
Brandeis Business School
University of California Irvine Leaderboard
NYU Tandon School of Engineering Sideboard
output_8BgzjE
University of California Berkeley Master of Financial Engineering MFE Sideboard
  • The Greenest Cities In America

    April 6, 2026October 28, 2025 by TFE Times
  • Best Car Floor Mats for Protecting Interiors from Dirt and Moisture

    April 5, 2026April 5, 2026 by TFE Times
  • Tuition Costs Of Top U.S. Colleges

    April 5, 2026October 28, 2025 by TFE Times
  • The World’s Oldest People In History

    April 4, 2026October 28, 2025 by TFE Times
  • The Cost Of Utilities Around The World

    April 3, 2026October 28, 2025 by TFE Times
  • Largest Labor Forces By Country

    April 2, 2026October 28, 2025 by TFE Times
  • The 10 Most Powerful U.S. Hurricanes

    April 1, 2026October 28, 2025 by TFE Times
  • The World’s Largest Merchant Fleets

    March 31, 2026October 28, 2025 by TFE Times
  • Median Household Income By State

    March 30, 2026October 28, 2025 by TFE Times
  • How Senior Home Care Improves Mental Health in Aging Adults

    March 29, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes