7th-8th of April the community corehard.by are hosting an international weekend conference dedicated to C++ and related technologies - CoreHard Spring 2018.

Speakers from the leading IT companies of Belarus, Russia, Ukraine, Germany and Netherlands will gather to preset their experience in development and testing.

We have prepared for you:
🔹3 streams of presentations on the first day of the conference;
🔹Live-translation of the first day for those who want to join remotely;
🔹3 streams of workshops on the second day of the conference;
🔹Lunch and coffee breaks for informal networking with the speakers;
🔹Souvenirs from the organizers and partners.

Full program and tickets you will find on the official website of the conference: http://conference.corehard.by/

P.S. Join us on the Telegram to discuss C++ and related "hardcore" topics: https://t.me/corehard_by

Let's start the party! ;)

Weeks of Programming Can Save You Hours of Planning Programming T-Shirt & Hoodie

Weeks of programming can save you hours of planning :D

➡️ goo.gl/JL7Va5

Limited number available

Converting caffeine into code t-shirt & hoodie :D
>> https://goo.gl/VR1oL4 <<
Available in the next 24 hours

Monte Carlo solution for Mathematics × Programming Competition #7

A point is chosen randomly in a square. 4 lines are drawn to connect this point with the 4 vertices of this square, such that 4 triangles are formed. Find the probability that all interior angles of the 4 triangles are less than 120°. Give your answer correct to the nearest 3 decimal places.

https://helloacm.com/monte-carlo-solution-for-mathematics-x-programming-competition-7/

Introduction to Logic Tests Series

Good if you are preparing for IT. interviews.

C++ Coding Exercise – Use HashTable/Priority Queue to Compute the Relative Ranks

Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: “Gold Medal”, “Silver Medal” and “Bronze Medal”.

Example 1:
Input: [5, 4, 3, 2, 1]
Output: [“Gold Medal”, “Silver Medal”, “Bronze Medal”, “4”, “5”]
Explanation: The first three athletes got the top three highest scores, so they got “Gold Medal”, “Silver Medal” and “Bronze Medal”.
For the left two athletes, you just need to output their relative ranks according to their scores.
Note:
N is a positive integer and won’t exceed 10,000.
All the scores of athletes are guaranteed to be unique.

class Solution {
public:
vector findRelativeRanks(vector& nums) {
// TODO
}
};

https://helloacm.com/c-coding-exercise-use-hashtablepriority-queue-to-compute-the-relative-ranks/

Simple C/C++ Rocket Animation

Loving it!

www.microsoft.com

Amaze your friends with this free .Net poster!!
https://www.microsoft.com/net/images/dotNET_poster.pdf

Today is "520", In chinese it means "I love you".
# apt-get install girlfriend
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package girlfriend

HTTP return codes cheat sheet.
1**. Hold on
2**. Here you go
3**. Go away
4**. You fucked up
5**. I fucked up
😆

Words Typed in One-Row’s American Keyboard

Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below.

// TODO:
vector findWords(vector& words) {

}

Example 1:
Input: ["Hello", "Alaska", "Dad", "Peace"]
Output: ["Alaska", "Dad"]

https://helloacm.com/words-typed-in-one-rows-american-keyboard/

Photos from C/C++ Programming Language's post

Installing Visual Studio 2017, which supports the C++ for Linux Compilation!

Timeline Photos

Given an array of numbers (for simplicity, we use integers), find the maximum value of abs(max left – max right) where we separate the array into two.

https://helloacm.com/an-interview-question-on-algorithm-to-find-absmax-left-max-right/

C++ whereis for Windows

C++ whereis implementation for Windows.
https://helloacm.com/c-whereis-for-windows/

How to Find All Numbers Disappeared in an Array? (C/C++ Coding Exercise)

Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.

Find all the elements of [1, n] inclusive that do not appear in this array.

Could you do it without extra space and in O(n) runtime? You may assume the returned list does not count as extra space.

Example:

Input:
[4,3,2,7,8,2,3,1]

Output:
[5,6]

https://helloacm.com/how-to-find-all-numbers-disappeared-in-an-array-cc-coding-exercise/

Write 3 lines of poem for Valentine's Day.

Girl gf;
gf.smile();
—— NullPointerException.

Integer Performance Comparison for C++, C#, Delphi

THERE ARE NO WINNERS HERE: and it is not about the language war!

Have a nice weekend!

https://codingforspeed.com/integer-performance-comparison-for-c-c-delphi/

helloacm.com

Why and When should you do a Profiling on Your Application?

https://helloacm.com/why-and-when-should-you-do-a-profiling-on-your-application/

Timeline Photos

Happy Chinese New Year! It is the Year of Rooster ! Our HR just said that we can take this afternoon off!

PS: I have just set up my 4-th monitor!
PPS: Dont' forget there is Chinese Spring Festival Gala:
https://justyy.com/watch-tv-online/en/chinese-spring-festival-gala-watch-online.php

How to Async and Await in C++11?

C++11 makes it easy to do asynchronous coding....

Multi-Processes Experiments – When Can Windows Utilize All the Cores?

Multi-Processes Experiments – When Can Windows Utilize All the Cores? Yesterday I jumped to conclusion too early... It is not 'academically' correct that only multithreading process can utilize multicores..

https://helloacm.com/multi-processes-experiments-when-can-windows-utilize-all-the-cores/

How can the OS use all cores for my application?

This is the biggest piece of knowledge I 've learned today: "In order to use multiple cores at the same time, multiple threads are required. The inverse is not true! To really take advantage of a multi-core system, an application should split up the main processing into multiple threads as well. Its algorithms need to be parallelized."

http://stackoverflow.com/questions/41642186/how-can-the-os-use-all-cores-for-my-application/41642808#41642808

Timeline Photos

Back to Work! This is my workstation... What does your workstation look like?

How to Capture the Integer-Divide-By-Zero Error in C++?

How to Capture the Integer-Divide-By-Zero Error in C++?
Merry Christmas and Happy New Year.

https://helloacm.com/how-to-capture-the-integer-divide-by-zero-error-in-c/

What is the Probability of Two Sharing Birthday?

Assume a year has 365 days, what is the probability among 50 students, that at least two having the same birthday?

and what is the probability that all only two (exactly two) share the birthday?

https://helloacm.com/what-is-the-probability-of-two-sharing-birthday/

How to Call COM Object from Visual Studio C++?

How to Call COM Object in Unmanaged C++? I spent hours on google but apparently there isn't a full working example, therefore, I write one in case somebody needs it.

https://helloacm.com/how-to-call-com-object-from-visual-studio-c/

Code Refactoring – C/C++ Unnecessary Loop Replaced with Math Expression

Refactor this:

double getRes(double height, double res) {
int num = 3;
double next = height / num;

// increase number of cubes if the next resolution is not worse
// than the preferable res
while (next >= res) {
num ++;
next = height / num;
}
return next;
}

https://helloacm.com/code-refactoring-cc-unnecessary-loop-replaced-with-math-expression/

How to Represent and Transpose a Sparse Matrix in C++?

How to Represent and Transpose a Sparse Matrix in C++? This weekend is only half left :(

https://helloacm.com/how-to-represent-and-transpose-a-sparse-matrix-in-c/

How to Link Static Library in C/C++ using GCC compiler?

How to Link Static Library in C/C++ using GCC compiler? and Weekend is almost over :(

https://helloacm.com/how-to-link-static-library-in-cc-using-gcc-compiler/