Coding Interview Resources: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
* [[System_Design_Interview_Resources|System Design Interview Resources]]
* [[System_Design_Interview_Resources|System Design Interview Resources]]


 
=Overview=
* <font color=red>Java API call to get a String of certain length made of spaces.</font>
* <font color=red>Java API call to get a String of certain length made of spaces.</font>
* Arrays have <code>.length</code>, Strings have <code>length()</code>
* Arrays have <code>.length</code>, Strings have <code>length()</code>

Revision as of 03:31, 9 November 2021

Internal

Overview

  • Java API call to get a String of certain length made of spaces.
  • Arrays have .length, Strings have length()
  • Lists have size()
  • Map has containsKey(T key), get(T key)
  • Digit character (‘0’ – ‘9’) to its int value (int)c – 48 (‘0’ is 48, ‘9’ is 57, ‘A’ is 65)
  • LinkedList API (add(), iterate)
  • List<Key>[] a; a = new List<Key>[10];
  • The mathematics of a modulo of a negative number.