Felvételiztetőként hogyan fogadnátok egy ilyen megoldást?
feladatlap rajta 10 kód részlet és érjük el hogy ne dobjon compile error-t.
public void doSomething(){
code
}
megoldás az összesre:
public void doSomething(){
/*
code
*/
}
:P





─── ── ── ── ── ── ── ─ ── ── ── ── ── ── ── ─ ── ── ── ── ── ─ ── ── ── ── ── ── ── ─
─██ ██ ██ ██ ██ ██ ██ ─ ██ ██ ██ ── ██ ██ ██ ─ ██ ██ ██ ██ ██ ─ ██ ██ ██ ██ ██ ██ ██ ─
─██ ░░ ░░ ░░ ░░ ░░ ██ ─ ██ ░░ ██ ── ██ ░░ ██ ─ ██ ░░ ░░ ░░ ██ ─ ██ ░░ ░░ ░░ ░░ ░░ ██ ─
─██ ░░ ██ ██ ██ ██ ██ ─ ██ ░░ ██ ── ██ ░░ ██ ─ ██ ██ ░░ ██ ██ ─ ██ ██ ██ ░░ ██ ██ ██ ─
─██ ░░ ██ ── ── ── ── ─ ██ ░░ ██ ── ██ ░░ ██ ─ ── ██ ░░ ██ ── ─ ── ── ██ ░░ ██ ── ── ─
─██ ░░ ██ ██ ██ ██ ██ ─ ██ ░░ ██ ██ ██ ░░ ██ ─ ── ██ ░░ ██ ── ─ ── ── ██ ░░ ██ ── ── ─
─██ ░░ ░░ ░░ ░░ ░░ ██ ─ ██ ░░ ░░ ░░ ░░ ░░ ██ ─ ── ██ ░░ ██ ── ─ ── ── ██ ░░ ██ ── ── ─
─██ ██ ██ ██ ██ ░░ ██ ─ ██ ░░ ██ ██ ██ ░░ ██ ─ ── ██ ░░ ██ ── ─ ── ── ██ ░░ ██ ── ── ─
─── ── ── ── ██ ░░ ██ ─ ██ ░░ ██ ── ██ ░░ ██ ─ ── ██ ░░ ██ ── ─ ── ── ██ ░░ ██ ── ── ─
─██ ██ ██ ██ ██ ░░ ██ ─ ██ ░░ ██ ── ██ ░░ ██ ─ ██ ██ ░░ ██ ██ ─ ── ── ██ ░░ ██ ── ── ─
─██ ░░ ░░ ░░ ░░ ░░ ██ ─ ██ ░░ ██ ── ██ ░░ ██ ─ ██ ░░ ░░ ░░ ██ ─ ── ── ██ ░░ ██ ── ── ─
─██ ██ ██ ██ ██ ██ ██ ─ ██ ██ ██ ── ██ ██ ██ ─ ██ ██ ██ ██ ██ ─ ── ── ██ ██ ██ ── ── ─
─── ── ── ── ── ── ── ─ ── ── ── ── ── ── ── ─ ── ── ── ── ── ─ ── ── ── ── ── ── ── ─





─────────────────────────────────────────────────────────
─██████████████─██████──██████─██████████─██████████████─
─██░░░░░░░░░░██─██░░██──██░░██─██░░░░░░██─██░░░░░░░░░░██─
─██░░██████████─██░░██──██░░██─████░░████─██████░░██████─
─██░░██─────────██░░██──██░░██───██░░██───────██░░██─────
─██░░██████████─██░░██████░░██───██░░██───────██░░██─────
─██░░░░░░░░░░██─██░░░░░░░░░░██───██░░██───────██░░██─────
─██████████░░██─██░░██████░░██───██░░██───────██░░██─────
─────────██░░██─██░░██──██░░██───██░░██───────██░░██─────
─██████████░░██─██░░██──██░░██─████░░████─────██░░██─────
─██░░░░░░░░░░██─██░░██──██░░██─██░░░░░░██─────██░░██─────
─██████████████─██████──██████─██████████─────██████─────
─────────────────────────────────────────────────────────










Nem fogadnám el, mert nyilvánvalóan, bár végrehajtottad a feladatot, láthatóan nem értetted meg a lényegét.
Van angolul a "technically correct" kifejezés, azt hiszem, magyarra a legjobban is "végülis, igazad van, csak na"-nak lehtene fordítani. Ez pontosan ilyen. A cél igazából nem az, hogy a fordítási hibákat kiküszöböld, hanem, hogy mások által írt kódot menedzselj, megérts, ezzel bizonyítva, hogy képes és hajlandó vagy csapatban dolgozni, szükség esetén más után takarítani. A megoldásodból nyilvánvaló, hogy ezt nem értetted meg, és ezért inkább olyant vesznek fel, aki erre kapásból rájön.





A feladatot maximálisan megoldotta, úgyhogy max pont.
Az már más kérdés, hogy a feladat iszonyú primitív és azt kéne kirúgni, aki kitalálta.










"érjük el hogy ne dobjon compile error-t"
Sokkal egyszerűbb megoldás: ne fordítsuk le.










Kapcsolódó kérdések:
Minden jog fenntartva © 2025, www.gyakorikerdesek.hu
GYIK | Szabályzat | Jogi nyilatkozat | Adatvédelem | Cookie beállítások | WebMinute Kft. | Facebook | Kapcsolat: info(kukac)gyakorikerdesek.hu
Ha kifogással szeretne élni valamely tartalommal kapcsolatban, kérjük jelezze e-mailes elérhetőségünkön!