↓ Skip to Main Content
Useful code Programming with VBA, C# and Python

Main Navigation

  • All
  • VBA
    • VBA Tools
    • VBA Online Resources
    • All VBA articles
  • Python
  • Else
    • C#
  • Reviews
    • List of reviews
  • YouTube
  • PayPal
  • About
Useful code Programming with VBA, C# and Python

Off Canvas Menu

  • All
  • VBA
    • VBA Tools
    • VBA Online Resources
    • All VBA articles
  • Python
  • Else
    • C#
  • Reviews
    • List of reviews
  • YouTube
  • PayPal
  • About

Category: C Sharp Tricks

Why do Java developers wear glasses?
Because they do not C#.

Home › Archive for C Sharp Tricks › Page 2
.Net – Reading Excel file in C# and transferring it to a matrix
C Sharp Tricks

.Net – Reading Excel file in C# and transferring it to a matrix

Vitosh Apr 5, 2018 Tagged with Excel, Excel range to C#, Interop.Excel, range to array, read range

There is an ERP joke, claiming that the third most popular button of an ERP system is “Export to Excel” (after OK and Cancel). Thus, working with Excel from .Net is happens often. There are some pitfalls, that you should …

.Net – Reading Excel file in C# and transferring it to a matrix Read more →

C# – Looking for a value in Excel with C# & VisualStudio
C Sharp Tricks

C# – Looking for a value in Excel with C# & VisualStudio

Vitosh Mar 3, 2018 Tagged with C#, Excel, find, visual studio

Using Visual Studio and Excel is actually quite fun – the Visual Studio advanced environment provides a bit more possibilities than the Visual Basic Editor, built-in Excel. In this article, about a year ago I have shown how to loop …

C# – Looking for a value in Excel with C# & VisualStudio Read more →

C# – CodeForces – Chtholly’s request
C Sharp Tricks

C# – CodeForces – Chtholly’s request

Vitosh Dec 5, 2017 Tagged with C#, codeforces

Solving problems at CodeForces is a kind of hobby. Lately, in round 449, division 2, there was a problem which has met my interest. It has to do with palindromes and really big numbers. The problem is easy to calculate, …

C# – CodeForces – Chtholly’s request Read more →

VBScript Simple Program – Problem in CodeForces
C Sharp Tricks, CodeForces

VBScript Simple Program – Problem in CodeForces

Vitosh Nov 11, 2017 Tagged with basic, C#, how to vbscript, vbscript

In order to learn a language, the best way is to practise it! Thus, I have decided to challange myself to solve a task on CodeForces with VBScript.  As far as VBScript is not one of the official CodeForces languages …

VBScript Simple Program – Problem in CodeForces Read more →

C# – CodeForces – Borya’s Diagnosis
C Sharp Tricks

C# – CodeForces – Borya’s Diagnosis

Vitosh Oct 31, 2017 Tagged with Borya's Diagnosis, C#, codeforces

Every time, wherever I decide to take a look at CodeForces and to code & publish some of the easy problems, I am thinking that this is probably the last one, because it is too easy. However, I always find …

C# – CodeForces – Borya’s Diagnosis Read more →

C# – SoftUni – Natural Order Sequences
C Sharp Tricks

C# – SoftUni – Natural Order Sequences

Vitosh Oct 4, 2017 Tagged with algorithm, C#, Natural order sequences, recursion

Another SoftUni algorithm problem that I have considered interesting is presented here: You are given an integer S. Generate all non-empty sequences of numbers in range [1…S], which have sum of elements ≤ S. Display the sequences in their natural order, …

C# – SoftUni – Natural Order Sequences Read more →

C# – CodeForces – Tell Your World
C Sharp Tricks, CodeForces

C# – CodeForces – Tell Your World

Vitosh Sep 12, 2017 Tagged with C#, Cartesian, Coordiante system

Y = mX+B This formula is the basics of the Cartesian coordinate system. And about 70% of the knowledge, needed to solve problem B in the 2. Division of CodeForces. The problem looks like this: There are n points on a coordinate …

C# – CodeForces – Tell Your World Read more →

C# – CodeForces – Two TVs
C Sharp Tricks, CodeForces

C# – CodeForces – Two TVs

Vitosh Aug 30, 2017 Tagged with algorithm, codeforces, queue

Having two TVs is great. Or it used to be in the 90s. Anyhow, the latest problem in CodeForces that I have resolved was concerning a guy with a schedule of TV shows, which he was planning to watch on his …

C# – CodeForces – Two TVs Read more →

C# – CodeForces – Luba And The Ticket
C Sharp Tricks, CodeForces

C# – CodeForces – Luba And The Ticket

Vitosh Aug 28, 2017 Tagged with brute force, C#, codeforces

Magic tickets are considered the tickets in which the sum of the left digits is equal to the sum of the right digits. E.g., if you ticket is number 124016 it is a magic ticket, because 1+2+4 = 0 + …

C# – CodeForces – Luba And The Ticket Read more →

C# – CodeForces – Game of Rows
C Sharp Tricks, CodeForces

C# – CodeForces – Game of Rows

Vitosh Aug 22, 2017 Tagged with C#, codeforces, Game of rows, greed

CodeForces.com has become something like a hobby – instead of thinking about a topic for an article, I simply solve a problem there and blog about it. Thus, lately I have taken a look at Round 428, Division 2, problem …

C# – CodeForces – Game of Rows Read more →

CodeForces – Star Sky
C Sharp Tricks

CodeForces – Star Sky

Vitosh Aug 7, 2017 Tagged with C#, codeforces

CodeForces.com is one of the reasons why I blog quite often. Last week, in round 427 there was an interesting problem, which I was eager to solve. The problem was described as follows: The Cartesian coordinate system is set in …

CodeForces – Star Sky Read more →

C# – CodeForces – Keyboard Layouts
C Sharp Tricks

C# – CodeForces – Keyboard Layouts

Vitosh Jul 23, 2017 Tagged with C#, codeforces

CodeForces.com is the web site, which shows problems for competitive programmers. Today I have decided to take a look at the 2. problem of the 2. division of Round 424 –Keyboard Layouts. The problem is pretty simple to explain for …

C# – CodeForces – Keyboard Layouts Read more →

C# – CodeForces – A. Mister B and Book Reading
C Sharp Tricks, CodeForces

C# – CodeForces – A. Mister B and Book Reading

Vitosh Jul 17, 2017 Tagged with C#, codefoces

Codeforces has easy and tough questions. However, the easy are not always easy, but the tough are always tough. Thus, after writing the Excel article here for Sumproduct, I have decided to go a bit easy and start with the …

C# – CodeForces – A. Mister B and Book Reading Read more →

C# – CodeForces – Okabe And Boxes
C Sharp Tricks, CodeForces

C# – CodeForces – Okabe And Boxes

Vitosh Jul 16, 2017 Tagged with C#, Stack

CodeForces has people working 24/7, trying to come up with interesting problems for the IT community. Thus, it’s always challenging to take a look at these problems and to try to solve them. The latest problem I have faced was one …

C# – CodeForces – Okabe And Boxes Read more →

C# – CodeForces – Okabe and Banana Trees
C Sharp Tricks, CodeForces

C# – CodeForces – Okabe and Banana Trees

Vitosh Jul 11, 2017 Tagged with C#, codeforces, linear equations

It does not happen a lot, but this time the 2. problem  of CodeForces really made me rethink my life choices and made me feel a bit sorry that I was in a school where we studied Maths about 4 hours …

C# – CodeForces – Okabe and Banana Trees Read more →

C# – CodeForces – Okabe and Future Gadget Laboratory
C Sharp Tricks

C# – CodeForces – Okabe and Future Gadget Laboratory

Vitosh Jul 10, 2017 Tagged with algorithm, C#, simple

CodeForces is a nice website for anyone, who likes checking himself vs the top developers worldwide. It’s even separated into divisions, thus, they kindly provide 3 easy questions and 5 hard. Although, I do not know anyone who can call …

C# – CodeForces – Okabe and Future Gadget Laboratory Read more →

C# – CodeForces – Karen and Game
C Sharp Tricks, CodeForces

C# – CodeForces – Karen and Game

Vitosh Jun 28, 2017 Tagged with C#, codeforces, greedy

Karen and Game is the third article about Karen. In a row. Pretty much, someone in CodeForces has created 7 different problems with her, thus the Japanese lady is getting famous. This time the problem looks like this: The game is …

C# – CodeForces – Karen and Game Read more →

C# – CodeForces – Karen and Coffee
C Sharp Tricks, CodeForces

C# – CodeForces – Karen and Coffee

Vitosh Jun 25, 2017 Tagged with binary search, C#, data structures

If you are following this blog you are probably asking yourself Who the beep is Karen? and why do I write a 2. article about her in a row? 🙂 Well, that’s Karen and she obviously likes coffee: Karen was the main …

C# – CodeForces – Karen and Coffee Read more →

C# – CodeForces – Karen and Morning
C Sharp Tricks, CodeForces

C# – CodeForces – Karen and Morning

Vitosh Jun 19, 2017 Tagged with C#, CodeForeces, TimeSpan

Its Sunday and it is time for CodeForces. Today I have taken a look at round number 816, Problem A. The problem initially looks rather easy and you think that nothing can go wrong, until you do not try it. …

C# – CodeForces – Karen and Morning Read more →

C# – CodeForces – An express train to reveries
C Sharp Tricks, CodeForces

C# – CodeForces – An express train to reveries

Vitosh Jun 17, 2017 Tagged with C#, codeforces, constructive algorithms

CodeForces.com is a web site for competitive programming. One of the 2 really famous sites in internet. Yesterday I was fighting with a the problem 2 in Division B from competition number 814 for about 1 hour, until I have managed …

C# – CodeForces – An express train to reveries Read more →

C# – CodeForces – An abandoned sentiment from past
C Sharp Tricks

C# – CodeForces – An abandoned sentiment from past

Vitosh Jun 16, 2017 Tagged with Algorithms, C#, codeforces, string to list of int

CodeFoces.com is the place where I go when I do not know what to blog about. 🙂 Anyhow, as a developer who is with some experience there, I always expect that the first problems of Division 2 would be quite …

C# – CodeForces – An abandoned sentiment from past Read more →

C# – CodeForces – Sagheer and Crossroads
C Sharp Tricks

C# – CodeForces – Sagheer and Crossroads

Vitosh Jun 5, 2017 Tagged with convert ToList() in one line, Split string

Codeforces.com is the web site, that lets you check your algorithmic skills, in case that you want to see where you are, compared to the world. Thus, today I was checking the problems in the 2. Division and the first …

C# – CodeForces – Sagheer and Crossroads Read more →

Entity Framework – C# – CodeFirst – Video
EntityFramework

Entity Framework – C# – CodeFirst – Video

Vitosh May 27, 2017 Tagged with C#, codefirst, Entity Framework

After the first two videos for C# Entity Framework (Video 1 and Video 2) I have decided to make a small one for the Code First approach. I have used the materials of SoftUni here, mainly concentrating on problem 3. …

Entity Framework – C# – CodeFirst – Video Read more →

Entity Framework – C# – Introduction – Video – Part 2
EntityFramework

Entity Framework – C# – Introduction – Video – Part 2

Vitosh May 16, 2017 Tagged with C#, Entity Framework, introduction, SoftUni

After the first part of the SoftUni homework for Entity Framework here, I have decided to make a small video with the next 4 problems. Following the same logic, I have made a 30 minute YouTube video with the trial …

Entity Framework – C# – Introduction – Video – Part 2 Read more →

Entity Framework – C# – Introduction – Video
C Sharp Tricks, EntityFramework

Entity Framework – C# – Introduction – Video

Vitosh May 14, 2017 Tagged with C#, EntityFramework, introduction, SoftUni

I have started some time ago to do stuff with Entity Framework (EF) in VitoshAcademy, I even have two articles about it – Beginning with EF and Enable Migrations with EF. I have noticed that the SoftUni is having an EF course, …

Entity Framework – C# – Introduction – Video Read more →

CodeForces – Problem 798B – Mike and strings
C Sharp Tricks

CodeForces – Problem 798B – Mike and strings

Vitosh May 2, 2017 Tagged with C#, codefoces

Solving problems in CodeForces usually never works out as expected somehow – if I tend to overestimate the problem, I am able to solve it within 10 minutes and if I underestimate it, I stay about 1 hour on a simple …

CodeForces – Problem 798B – Mike and strings Read more →

Codeforces – Problem 798A – Checking the Calendar
C Sharp Tricks, C++

Codeforces – Problem 798A – Checking the Calendar

Vitosh Apr 30, 2017 Tagged with algorithm, C#, codeforces

After reviewing the Meller watch, it’s time for some more IT related stuff in the blog.  Thus, I have decided to do what I usually do when I want to write some article and I do not know what to …

Codeforces – Problem 798A – Checking the Calendar Read more →

C# – Code Forces – Not Afraid
C Sharp Tricks

C# – Code Forces – Not Afraid

Vitosh Mar 30, 2017

CodeForces.Com is probably the only place in the world, where an amateur would be able to compare himself with the best in class professionals. Imagine, if everyone was able to play daily vs Cristiano Ronaldo 🙂 Thus, every now and …

C# – Code Forces – Not Afraid Read more →

C# – Code Forces – Codeforces Round #406B
C Sharp Tricks

C# – Code Forces – Codeforces Round #406B

Vitosh Mar 27, 2017 Tagged with C#, codeforces

Its Sunday and it is a good idea to see what CodeForces have done through the week. As in general, lots of good problems. Thus, starting with the easiest one in the second division. A. The Monster A monster is …

C# – Code Forces – Codeforces Round #406B Read more →

C# – Code Forces – Codeforces Round #402B
C Sharp Tricks

C# – Code Forces – Codeforces Round #402B

Vitosh Mar 15, 2017 Tagged with C#, codeforces, Codeforces Round #402B

Codeforces.com is really a nice site, if want to try yourself vs. the top programming students in the world. Just to check your level in a way 🙂 Thus, today I have decided to take a look at the problems …

C# – Code Forces – Codeforces Round #402B Read more →

Posts pagination

Previous 1 2 3 4 5 Next

Copyright © 2026 VitoshAcademy