Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

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

Category: C++

C++: Binary Digits

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged binary, c, digits
C++: Binary Digits

The task is to output the sequence of binary digits for a given non-negative integer. The decimal value 5, should produce an output of 101 The deci

Continue Reading

C++: Maximum Triangle Path Sum

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, maximum, maximum path, path, sum, triangle
C++: Maximum Triangle Path Sum

Starting from the top of a pyramid of numbers like this, you can walk down going one step on the right or on the left, until you reach the bottom row:

Continue Reading

Best C++ Videos

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++, VideosTagged best, videos
Best C++ Videos

[pt_view id="17aa22899c"]

Continue Reading

C++: File Input/Output

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, file, files, inputoutput
C++: File Input/Output

In this task, the job is to create a file called "output.txt", and place in it the contents of the file "input.txt", via an intermediate variable. In

Continue Reading

C++: Execute Only Part of Loop

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, execute, loop, loops, of, only, part
C++: Execute Only Part of Loop

Quite often one needs loops which, in the last iteration, execute only part of the loop body. The goal of this task is to demonstrate the best way to

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++: 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++: Binary Search

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++Tagged binary, search
C++: Binary Search

//! \brief A recursive binary search using STL vectors //! \param vec The vector whose elements are to be searched //! \param start The index of

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

Posts navigation

Older posts
Newer posts
Brandeis Business School
University of Maryland Masters of Economics Sideboard
output_8BgzjE
NYU Tandon School of Engineering Sideboard
University of Maryland Masters of Economics Sideboard
Click here
University of California Berkeley Master of Financial Engineering MFE Sideboard
University of California Irvine Leaderboard
  • The Lowest Cost Energy Sources

    April 24, 2026October 29, 2025 by TFE Times
  • Helium Reserves By Country

    April 23, 2026October 29, 2025 by TFE Times
  • Why Car Accident Claims Require Experienced Legal Representation

    April 22, 2026 by TFE Times
  • How do you choose a good payment gateway in India for your business?

    April 22, 2026 by TFE Times
  • 10 Tools That Make Gardening Cost-Effective in 2026

    April 22, 2026April 22, 2026 by TFE Times
  • Where Americans Spend The Most & Least On Groceries

    April 22, 2026October 28, 2025 by Patrick
  • States With The Most Job Openings

    April 21, 2026October 28, 2025 by TFE Times
  • A Decade Of Central Bank Gold Purchases

    April 20, 2026October 28, 2025 by TFE Times
  • Where The World’s Nuclear Power Comes From

    April 19, 2026October 28, 2025 by TFE Times
  • America’s Fastest Shrinking Jobs

    April 18, 2026April 24, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes