Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

RPI Leaderboard
University of Maryland Masters of Economics Leaderboard
MAFI_728x90
University of California Irvine Leaderboard
Click here
Brandeis University Master of Finance Leaderboard 728x90
University of California Irvine Leaderboard
Click here
NYU Tandon School of Engineering Leaderboard
University of Maryland Masters of Economics  Leaderboard
Click here
MAFI_728x90
  • Business
  • Culture
    • Beer Guide
    • Cheese Guide
    • Cigar Guide
    • Coffee Guide
    • Wine Guide
  • 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
  • WSET
    • WSET Level 1 Beer
    • WSET Level 2 Beer
    • WSET Level 1 Sake
    • WSET Level 2 Sake
    • WSET Level 3 Sake
    • WSET Level 1 Spirits
    • WSET Level 2 Spirits
    • WSET Level 3 Spirits
    • WSET Level 1 Wine
    • WSET Level 2 Wine
    • WSET Level 3 Wine
    • WSET Level 4 Wine

Author: TFE Times

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

CppCon 2014: Herb Sutter “Back to the Basics! Essentials of Modern C++ Style”

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ VideosTagged 2014, back, basics, cppcon, essentials, herb, modern, of, style, sutter, the, to
CppCon 2014: Herb Sutter “Back to the Basics! Essentials of Modern C++ Style”

https://www.youtube.com/watch?v=xnqTKD8uD64

Continue Reading

C++: Execute a System Command

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged a, c, command, commnd, execute, system
C++: Execute a System Command

In this task, the goal is to run either the ls (dir on Windows) system command, or the pause system command. Works with: Visual C++ version 2005 sys

Continue Reading

C++: Horner’s Rule for Polynomial Evaluation

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, evaluation, for, horner, polynomial, polynomials, rule, rules, s
C++: Horner’s Rule for Polynomial Evaluation

A fast scheme for evaluating a polynomial such as: when . is to arrange the computation as follows: And compute the result f

Continue Reading

C++: Input Loop

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, input loop
C++: Input Loop

Read from a text stream either word-by-word or line-by-line until the stream runs out of data. The stream will have an unknown amount of data on it.

Continue Reading

C++: Knapsack Problem

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged knapsack, knapsack problem, problem
C++: Knapsack Problem

A tourist wants to make a good trip at the weekend with his friends. They will go to the mountains to see the wonders of nature, so he needs to pack w

Continue Reading

C++: Sort a Range of Elements

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged a, c, elements, of, range, rnge, sort
C++: Sort a Range of Elements

On line 8, we create a std::array of ints that we wish to sort. On line 10, we call the standard alrogithm std::sort, which sorts the range of elem

Continue Reading

C++: Swap Values

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, swap, values
C++: Swap Values

On lines 6–7, we create two std::string objects whose values we wish to swap. However, this sample will also apply to any other swappable type. O

Continue Reading

C++: What is the name of the “–>” operator?

Posted on September 1, 2017November 7, 2026 by TFE Times
Posted in C++Tagged c, is, name, of, operator, the, what
C++: What is the name of the “–>” operator?

After reading Hidden Features and Dark Corners of C++/STL on comp.lang.c++.moderated, I was completely surprised that it compiled and worked in both V

Continue Reading

Posts navigation

Older posts
Newer posts
output_8BgzjE
University of California Irvine Leaderboard
Click here
Brandeis Business School
NYU Tandon School of Engineering Sideboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
University of Maryland Masters of Economics Sideboard
University of Maryland Masters of Economics Sideboard
  • A hand holds an amber bottle with a generic pale ale label showing strength and volume.

    How to Read a Beer Label

    November 10, 2026October 19, 2026 by TFE Times
  • Overhead illustration comparing an instructor with four snowboard learners and a separate instructor with one learner on two snow practice areas.

    Snowboarding Lessons Explained: Group vs. Private

    November 9, 2026October 26, 2026 by TFE Times
  • A warm mid-century office with wooden desks, staff working at typewriters, a rotary telephone, stacked forms, and a small white ceramic duck on the foreground desk.

    History of Aflac

    November 9, 2026September 19, 2026 by TFE Times
  • 2026 College Football Power Rankings Week 11: Georgia No. 1, Notre Dame No. 2, Utah No. 3, UCLA No. 4 and Miami No. 5, shown as helmets under stadium lights.

    2026 College Football Power Rankings — Week 11: Notre Dame Beats Miami as Georgia Holds No. 1

    November 9, 2026 by TFE Times
  • Best Restaurants in Detroit: 15 Standout Places to Eat — food and city collage

    Best Restaurants in Detroit: 15 Standout Places to Eat

    November 9, 2026October 17, 2026 by TFE Times
  • A three-person group ski lesson on the left and an individual lesson on the right of a spacious beginner area.

    Ski Lessons Explained: Group vs. Private Lessons

    November 9, 2026October 25, 2026 by TFE Times
  • 5 Ways Young Entrepreneurs Can Gain Practical Business Finance Skills

    November 9, 2026 by TFE Times
  • App-Based Car Rentals: Sorting Out Fault and Insurance

    November 9, 2026 by TFE Times
  • Illustrated history cover for the Chicago Bears

    History of the Chicago Bears: From Halas and the Staleys to the Monsters of the Midway

    November 9, 2026October 17, 2026 by TFE Times
  • A hand holds a steel shaker and strainer while pouring a pale citrus cocktail into a coupe at a teal-tiled preparation station.

    How Cocktails Are Made: The Basics

    November 9, 2026October 25, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes