Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

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

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged compression, lzw, lzw algorithm
C++: LZW Compression

The Lempel-Ziv-Welch (LZW) algorithm provides lossless data compression. You can read a complete description of it in the Wikipedia article on the sub

Continue Reading

What is “:-!!” in C code?

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C QuestionsTagged code, in, is, what
What is “:-!!” in C code?

I bumped into this strange macro code in /usr/include/linux/kernel.h: /* Force a compilation error if condition is true, but also produce a resul

Continue Reading

C++: Longest Common Substring

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

#include <string> using std::string; int LongestCommonSubstring(const string& str1, const string& str2) { if(str1.empty() |

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

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

Posts navigation

Older posts
Newer posts
NYU Tandon School of Engineering Sideboard
output_8BgzjE
Click here
University of Maryland Masters of Economics Sideboard
University of Maryland Masters of Economics Sideboard
Brandeis Business School
University of California Berkeley Master of Financial Engineering MFE Sideboard
University of California Irvine Leaderboard
  • A relief globe showing the North Atlantic with a glowing green loop between North America and the British Isles, beside a polished brass stock-exchange bell.

    History of Citizens Financial Group

    October 18, 2026September 19, 2026 by TFE Times
  • Best Restaurants in Jersey City: 15 Standout Places to Eat — illustrative cover

    Best Restaurants in Jersey City: 15 Standout Places to Eat

    October 18, 2026October 17, 2026 by TFE Times
  • The History of the 5-Iron: Golf’s Disappearing Middleweight

    October 18, 2026October 17, 2026 by TFE Times
  • 5 Everyday Business Expenses Worth Reviewing Every Year

    October 17, 2026 by TFE Times
  • Before the Damage Spreads: Outdoor Maintenance Warning Signs in Winter Garden

    October 17, 2026 by TFE Times
  • Running Trading Backtests on a Rented Server: What Quant Students Need

    October 17, 2026 by TFE Times
  • Best Restaurants in Oxford, Mississippi: 15 Standout Places to Eat — illustrative food collage

    Best Restaurants in Oxford: 15 Standout Places to Eat

    October 17, 2026October 16, 2026 by TFE Times
  • The Judgment of Paris: The Tasting That Changed Wine

    October 17, 2026October 16, 2026 by TFE Times
  • Two period factory workers handle a large automobile tire beside an early motorcar outside a red-brick industrial building, while a silver airship floats overhead.

    History of Goodyear Tire & Rubber

    October 16, 2026September 19, 2026 by TFE Times
  • Best Restaurants in Milwaukee: 15 Standout Places to Eat — food and city collage

    Best Restaurants in Milwaukee: 15 Standout Places to Eat

    October 16, 2026October 3, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes